mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 12:33:46 -05:00
Disambiguate add path with --
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user