Skip to content

Commit ada670f

Browse files
committedMay 15, 2018
add resolve for link file
1 parent db10f7b commit ada670f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎autoload/easygit.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let s:is_win = has("win32") || has('win64')
1212
" if suspend is given as a:1, no error message
1313
function! easygit#gitdir(path, ...) abort
1414
let suspend = a:0 && a:1 != 0
15-
let path = fnamemodify(a:path , ':p')
15+
let path = resolve(fnamemodify(a:path , ':p'))
1616
let gitdir = s:FindGitdir(path)
1717
if empty(gitdir) && !suspend
1818
echohl Error | echon 'Git directory not found' | echohl None

‎plugin/easygit.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ augroup easygit_auto_lcd
169169
autocmd!
170170
if get(g:, 'easygit_auto_lcd', 0)
171171
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
173173
autocmd BufWinEnter,BufReadPost * call s:TryGitCd('tcd')
174174
endif
175175
augroup end

0 commit comments

Comments
 (0)
Please sign in to comment.