diff --git a/autoload/sy/repo.vim b/autoload/sy/repo.vim index c250059..23f27c4 100644 --- a/autoload/sy/repo.vim +++ b/autoload/sy/repo.vim @@ -104,7 +104,7 @@ endfunction " Function: #get_diff_hg {{{1 function! sy#repo#get_diff_hg() abort let diffoptions = has_key(g:signify_diffoptions, 'hg') ? g:signify_diffoptions.hg : '' - let diff = system('hg diff --nodates -U0 '. diffoptions .' -- '. sy#util#escape(b:sy.path)) + let diff = sy#util#run_in_dir(fnamemodify(b:sy.path, ':h'), 'hg diff --nodates -U0 '. diffoptions .' -- '. sy#util#escape(b:sy.path)) return v:shell_error ? [0, ''] : [1, diff] endfunction