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