mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 12:53:52 -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()
|
let dir = s:Dir()
|
||||||
endif
|
endif
|
||||||
call s:PreparePathArgs(cmd, dir, !exists('explicit_pathspec_option'))
|
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
|
endfunction
|
||||||
|
|
||||||
function! s:BuildEnvPrefix(env) abort
|
function! s:BuildEnvPrefix(env) abort
|
||||||
|
|||||||
Reference in New Issue
Block a user