g:gitgutter_diff_base () is invalid
ta3pks opened this issue · comments
TA3PKS commented
What is the latest commit SHA in your installed vim-gitgutter?
6efb835
What vim/nvim version are you on?
0.9.4
Everything was fine after doing an update to gitgutter started receiving this error message on startup
Dmitry Frank commented
Andy Stewart commented
Please could you apply this patch?
diff --git i/autoload/gitgutter/utility.vim w/autoload/gitgutter/utility.vim
index 9c196fc..ba50d3c 100644
--- i/autoload/gitgutter/utility.vim
+++ w/autoload/gitgutter/utility.vim
@@ -291,7 +291,7 @@ function! s:obtain_file_renames(bufnr, base)
let [out, error_code] = gitgutter#utility#system(gitgutter#utility#cd_cmd(a:bufnr, cmd))
if error_code
" Assume the problem is the diff base.
- call gitgutter#utility#warn('g:gitgutter_diff_base ('.a:base.') is invalid')
+ echom error_code ' :: ' out
return {}
endif
for line in split(out, '\n')
And let me know what message it prints?
Andy Stewart commented
Never mind, I've seen the problem. The -c
flag applies to git
, not the diff
subcommand.
TA3PKS commented
thanks for the swift action :)