File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ let s:is_win = has("win32") || has('win64')
12
12
" if suspend is given as a:1, no error message
13
13
function ! easygit#gitdir (path , ... ) abort
14
14
let suspend = a: 0 && a: 1 != 0
15
- let path = fnamemodify (a: path , ' :p' )
15
+ let path = resolve ( fnamemodify (a: path , ' :p' ) )
16
16
let gitdir = s: FindGitdir (path )
17
17
if empty (gitdir) && ! suspend
18
18
echohl Error | echon ' Git directory not found' | echohl None
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ augroup easygit_auto_lcd
169
169
autocmd !
170
170
if get (g: , ' easygit_auto_lcd' , 0 )
171
171
autocmd BufWinEnter ,BufReadPost * call s: TryGitCd (' lcd' )
172
- elseif get (g: , ' easygit_auto_tcd' , 0 )
172
+ elseif get (g: , ' easygit_auto_tcd' , 0 ) && exists ( ' :tcd ' ) == 2
173
173
autocmd BufWinEnter ,BufReadPost * call s: TryGitCd (' tcd' )
174
174
endif
175
175
augroup end
You can’t perform that action at this time.
0 commit comments