@@ -53,10 +53,6 @@ const pendingCommands: Map<string, Promise<string>> = new Map();
5353async function gitCommandCore ( options : CommandOptions & { readonly correlationKey ?: string } , ...args : any [ ] ) : Promise < string > {
5454 const start = process . hrtime ( ) ;
5555
56- // Fixes https://github.com/eamodio/vscode-gitlens/issues/73 & https://github.com/eamodio/vscode-gitlens/issues/161
57- // See https://stackoverflow.com/questions/4144417/how-to-handle-asian-characters-in-file-names-in-git-on-os-x
58- args . splice ( 0 , 0 , '-c' , 'core.quotepath=false' , '-c' , 'color.ui=false' ) ;
59-
6056 const { correlationKey, ...opts } = options ;
6157
6258 const encoding = options . encoding || 'utf8' ;
@@ -68,11 +64,16 @@ async function gitCommandCore(options: CommandOptions & { readonly correlationKe
6864 env : { ...( options . env || process . env ) , GCM_INTERACTIVE : 'NEVER' , GCM_PRESERVE_CREDS : 'TRUE' }
6965 } as CommandOptions ;
7066
71- const command = `(${ runOpts . cwd } ${ correlationKey !== undefined ? correlationKey : '' } ): git ${ args . join ( ' ' ) } ` ;
67+ const gitCommand = `git ${ args . join ( ' ' ) } ` ;
68+ const command = `(${ runOpts . cwd } ${ correlationKey !== undefined ? correlationKey : '' } ): ${ gitCommand } ` ;
7269
7370 let promise = pendingCommands . get ( command ) ;
7471 if ( promise === undefined ) {
7572 Logger . log ( `Running${ command } ` ) ;
73+ // Fixes https://github.com/eamodio/vscode-gitlens/issues/73 & https://github.com/eamodio/vscode-gitlens/issues/161
74+ // See https://stackoverflow.com/questions/4144417/how-to-handle-asian-characters-in-file-names-in-git-on-os-x
75+ args . splice ( 0 , 0 , '-c' , 'core.quotepath=false' , '-c' , 'color.ui=false' ) ;
76+
7677 promise = runCommand ( git . path , args , runOpts ) ;
7778
7879 pendingCommands . set ( command , promise ) ;
@@ -89,7 +90,10 @@ async function gitCommandCore(options: CommandOptions & { readonly correlationKe
8990 pendingCommands . delete ( command ) ;
9091
9192 const duration = process . hrtime ( start ) ;
92- Logger . log ( `Completed${ command } in ${ ( duration [ 0 ] * 1000 ) + Math . floor ( duration [ 1 ] / 1000000 ) } ms` ) ;
93+ const completedIn = `in ${ ( duration [ 0 ] * 1000 ) + Math . floor ( duration [ 1 ] / 1000000 ) } ms` ;
94+
95+ Logger . log ( `Completed${ command } ${ completedIn } ` ) ;
96+ Logger . logGitCommand ( `${ gitCommand } ${ completedIn } ` , runOpts . cwd ! ) ;
9397 }
9498
9599 if ( encoding === 'utf8' || encoding === 'binary' ) return data ;
0 commit comments