Ensure git calls always use configured args for git.

See #628.
This commit is contained in:
Andy Stewart
2019-06-14 12:52:13 +01:00
parent 07b60b584e
commit dc3c0dcd2a
3 changed files with 5 additions and 5 deletions

View File

@@ -145,7 +145,7 @@ function! gitgutter#utility#set_repo_path(bufnr, continuation) abort
" * -2 - not tracked by git
call gitgutter#utility#setbufvar(a:bufnr, 'path', -1)
let cmd = gitgutter#utility#cd_cmd(a:bufnr, g:gitgutter_git_executable.' ls-files --error-unmatch --full-name -z -- '.gitgutter#utility#shellescape(s:filename(a:bufnr)))
let cmd = gitgutter#utility#cd_cmd(a:bufnr, g:gitgutter_git_executable.' '.g:gitgutter_git_args.' ls-files --error-unmatch --full-name -z -- '.gitgutter#utility#shellescape(s:filename(a:bufnr)))
if g:gitgutter_async && gitgutter#async#available()
let handler = copy(s:set_path_handler)