Skip to content

Commit 34a4907

Browse files
committed
Fixes missing git command logging
1 parent fb2d755 commit 34a4907

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/git/git.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,15 @@ async function gitCommandCore(options: GitCommandOptions, ...args: any[]): Promi
6464
// See https://stackoverflow.com/questions/4144417/how-to-handle-asian-characters-in-file-names-in-git-on-os-x
6565
args.splice(0, 0, '-c', 'core.quotepath=false', '-c', 'color.ui=false');
6666

67+
Logger.log('git', ...args, ` cwd='${options.cwd}'`);
68+
6769
const opts = { encoding: 'utf8', ...options };
6870
const s = await spawnPromise(git.path, args, {
6971
cwd: options.cwd,
7072
env: options.env || process.env,
7173
encoding: (opts.encoding === 'utf8') ? 'utf8' : 'binary'
7274
} as SpawnOptions);
7375

74-
Logger.log('git', ...args, ` cwd='${options.cwd}'`);
7576
if (opts.encoding === 'utf8' || opts.encoding === 'binary') return s;
7677

7778
return iconv.decode(Buffer.from(s, 'binary'), opts.encoding);

0 commit comments

Comments
 (0)