Revert "Explicitly tell git to diff outside any repo."

This reverts commit b4e43ae9e7.

It benefitted a small use case but causes problems for others.

See #541, #546.
This commit is contained in:
Andy Stewart
2018-07-31 14:18:45 +01:00
parent b4e43ae9e7
commit d2f38f401a

View File

@@ -100,7 +100,7 @@ function! gitgutter#diff#run_diff(bufnr, preserve_full_diff) abort
call s:write_buffer(a:bufnr, buff_file)
" Call git-diff with the temporary files.
let cmd .= g:gitgutter_git_executable.' --git-dir="" --no-pager'
let cmd .= g:gitgutter_git_executable.' --no-pager'
if s:c_flag
let cmd .= ' -c "diff.autorefreshindex=0"'
let cmd .= ' -c "diff.noprefix=false"'