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

@@ -221,7 +221,7 @@ function! s:stage(hunk_diff)
let diff = s:adjust_header(bufnr, a:hunk_diff)
" Apply patch to index.
call gitgutter#utility#system(
\ gitgutter#utility#cd_cmd(bufnr, g:gitgutter_git_executable.' apply --cached --unidiff-zero - '),
\ gitgutter#utility#cd_cmd(bufnr, g:gitgutter_git_executable.' '.g:gitgutter_git_args.' apply --cached --unidiff-zero - '),
\ diff)
" Refresh gitgutter's view of buffer.