Skip to content

Commit 59794e9

Browse files
committed
Fixes errors when listing history in repos without any tags
1 parent c993cfd commit 59794e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/git/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ export class Git {
812812
}
813813

814814
static showref_tag(repoPath: string) {
815-
return git<string>({ cwd: repoPath }, 'show-ref', '--tags');
815+
return git<string>({ cwd: repoPath, errors: GitErrorHandling.Ignore }, 'show-ref', '--tags');
816816
}
817817

818818
static stash_apply(repoPath: string, stashName: string, deleteAfter: boolean) {

0 commit comments

Comments
 (0)