mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 04:53:45 -05:00
Fix command preparation when no arguments, only flags
This commit is contained in:
@@ -485,7 +485,7 @@ function! fugitive#PrepareDirEnvGitFlagsArgs(...) abort
|
||||
let dir = s:Dir()
|
||||
endif
|
||||
call s:PreparePathArgs(cmd, dir, !exists('explicit_pathspec_option'))
|
||||
return [dir, env, git, cmd[0 : -arg_count-1], cmd[-arg_count : -1]]
|
||||
return [dir, env, git, cmd[0 : -arg_count-1], arg_count ? cmd[-arg_count : -1] : []]
|
||||
endfunction
|
||||
|
||||
function! s:BuildEnvPrefix(env) abort
|
||||
|
||||
Reference in New Issue
Block a user