From 018ea3955bf4164fff3ec1b1acd5b5f3b3bf4f4f Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 22 Jun 2014 12:27:26 -0400 Subject: [PATCH] Disambiguate add path with -- --- plugin/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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