diff --git a/src/git/git.ts b/src/git/git.ts index d7b518d..a3b3caf 100644 --- a/src/git/git.ts +++ b/src/git/git.ts @@ -325,7 +325,7 @@ export class Git { } static branch(repoPath: string, options: { all: boolean } = { all: false }) { - const params = ['branch', '-vv']; + const params = ['-c', 'color.branch=never', 'branch', '-vv']; if (options.all) { params.push('-a'); } @@ -334,7 +334,7 @@ export class Git { } static branch_contains(repoPath: string, ref: string, options: { remote: boolean } = { remote: false }) { - const params = ['branch', '--contains']; + const params = ['-c', 'color.branch=never', 'branch', '--contains']; if (options.remote) { params.push('-r'); }