commit 018ea3955bf4164fff3ec1b1acd5b5f3b3bf4f4f (tree)
parent 9f9dabc1f8b73d7e48d1599f0238796589a87765
Author: Tim Pope <code@tpope.net>
Date: Sun, 22 Jun 2014 12:27:26 -0400
Disambiguate add path with --
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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