From 59794e9e966a7b876ab1fe8ff2054f27bd9486f9 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sun, 2 Dec 2018 18:04:12 -0500 Subject: [PATCH] Fixes errors when listing history in repos without any tags --- src/git/git.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git/git.ts b/src/git/git.ts index 4a9b1d1..b70e957 100644 --- a/src/git/git.ts +++ b/src/git/git.ts @@ -812,7 +812,7 @@ export class Git { } static showref_tag(repoPath: string) { - return git({ cwd: repoPath }, 'show-ref', '--tags'); + return git({ cwd: repoPath, errors: GitErrorHandling.Ignore }, 'show-ref', '--tags'); } static stash_apply(repoPath: string, stashName: string, deleteAfter: boolean) {