diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index f7cb389..1b829af 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1327,9 +1327,9 @@ function! s:Write(force,...) abort endif if a:force - let error = s:repo().git_chomp_in_tree('add', '--force', path) + let error = s:repo().git_chomp_in_tree('add', '--force', '--', path) else - let error = s:repo().git_chomp_in_tree('add', path) + let error = s:repo().git_chomp_in_tree('add', '--', path) endif if v:shell_error let v:errmsg = 'fugitive: '.error