Skip to content

Commit 1ec2bce

Browse files
Phil Stainerphilstainer
authored andcommitted
fix: return null when get branch name errors
1 parent 5da5ade commit 1ec2bce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export const getCurrentBranchName = async () => {
111111

112112
return stdout.split('\n')[0];
113113
} catch (e: any) {
114-
throw Error(e);
114+
return null;
115115
}
116116
};
117117

0 commit comments

Comments
 (0)