lambdalisue / vim-gita

[Obsolete] An awesome git handling plugin for Vim
Other
226 stars 8 forks source link

Gita diff is broken #84

Closed rgrinberg closed 8 years ago

rgrinberg commented 8 years ago

:Gita diff and selecting HEAD~1 as the target gives me the following error:

"HEAD^1:lib/re_glob.ml" [New DIRECTORY]
Error detected while processing function <SNR>1_setcwd:
line    7:
E344: Can't find directory "HEAD^1:lib" in cdpath
E472: Command failed
Error detected while processing function <SNR>258_Gita..gita#features#command..gita#features#diff#command..gita#action#exec..314..gita#features#diff#action..gita#features#diff#show..<SNR>276_diff2..gita
#utils#buffer#open:
line   15:
E171: Missing :endif
Error detected while processing function <SNR>258_Gita..gita#features#command..gita#features#diff#command..gita#action#exec..314..gita#features#diff#action..gita#features#diff#show:
line    6:
E171: Missing :endif
Error detected while processing function <SNR>258_Gita..gita#features#command..gita#features#diff#command:
line    9:
E171: Missing :endif
Error detected while processing function <SNR>258_Gita..gita#features#command:
line   18:
E171: Missing :endif

I use neovim/master if that makes a difference

lambdalisue commented 8 years ago

Is this always happen for all repository? If this is a specific, could you know which one and the detail procedure?

lambdalisue commented 8 years ago

I ment "could I know"

rgrinberg commented 8 years ago

This is the file that I'm getting this error on:

https://github.com/rgrinberg/ocaml-re/blob/bfops-glob-rewrite/lib/re_glob.ml

But I've tried it in a couple of different repos and I'm getting the same error.

rgrinberg commented 8 years ago

However, it does seem to work at least on some files.

lambdalisue commented 8 years ago

Error detected while processing function 1_setcwd: line 7:

It seems some plugin or whatever tried to set cwd on a non existing file. See :autocmd BufRead or whatever and disable that. This is not vim-gita issue I guess.

lambdalisue commented 8 years ago

Here. Disable this. https://github.com/rgrinberg/vimrc/blob/master/.vimrc#L866-L875