Use correct cwd in verbose output

This commit is contained in:
Marco Hinz 2017-02-20 01:38:25 +01:00
parent 2778fd928c
commit 3020873ee4
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -72,7 +72,7 @@ function! sy#repo#get_diff_start(vcs, do_register) abort
try
execute chdir fnameescape(b:sy_info.dir)
call sy#verbose(printf('CMD: %s | CWD: %s', string(cmd), cwd), a:vcs)
call sy#verbose(printf('CMD: %s | CWD: %s', string(cmd), getcwd()), a:vcs)
let b:sy_job_id_{a:vcs} = jobstart(cmd, extend(options, {
\ 'on_stdout': function('s:callback_stdout_nvim'),
\ 'on_exit': function('s:callback_exit'),
@ -92,7 +92,7 @@ function! sy#repo#get_diff_start(vcs, do_register) abort
try
execute chdir fnameescape(b:sy_info.dir)
call sy#verbose(printf('CMD: %s | CWD: %s', string(cmd), cwd), a:vcs)
call sy#verbose(printf('CMD: %s | CWD: %s', string(cmd), getcwd()), a:vcs)
let opts = {
\ 'in_io': 'null',
\ 'out_cb': function('s:callback_stdout_vim', options),