Disambiguate add path with --

This commit is contained in:
Tim Pope
2014-06-22 12:27:26 -04:00
parent 9f9dabc1f8
commit 018ea3955b

View File

@@ -1327,9 +1327,9 @@ function! s:Write(force,...) abort
endif endif
if a:force 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 else
let error = s:repo().git_chomp_in_tree('add', path) let error = s:repo().git_chomp_in_tree('add', '--', path)
endif endif
if v:shell_error if v:shell_error
let v:errmsg = 'fugitive: '.error let v:errmsg = 'fugitive: '.error