Skip to content

Commit 2cd22d3

Browse files
committed
Avoids errors on validation
1 parent 3fdbfee commit 2cd22d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/env/node/git/sub-providers/branches.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { GitConfigKeys } from '../../../../constants';
22
import type { Container } from '../../../../container';
33
import type { GitCache } from '../../../../git/cache';
4+
import { GitErrorHandling } from '../../../../git/commandOptions';
45
import type {
56
BranchContributionsOverview,
67
GitBranchesSubProvider,
@@ -467,7 +468,7 @@ export class BranchesGitSubProvider implements GitBranchesSubProvider {
467468

468469
private async getValidatedBranchName(repoPath: string, name: string): Promise<string | undefined> {
469470
const data = await this.git.exec<string>(
470-
{ cwd: repoPath },
471+
{ cwd: repoPath, errors: GitErrorHandling.Ignore },
471472
'rev-parse',
472473
'--verify',
473474
'--quiet',

0 commit comments

Comments
 (0)