Skip to content

Commit eff1699

Browse files
bingenitoblakeembrey
authored andcommitted
Gracefully handle GitHub plugin git exec failures (TypeStrong#545)
1 parent b9ca44b commit eff1699

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/converter/plugins/GitHubPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class Repository {
129129
const out = <ShellJS.ExecOutputReturnValue> ShellJS.exec('git rev-parse --show-toplevel', {silent: true});
130130
ShellJS.popd();
131131

132-
if (out.code !== 0) {
132+
if (!out || out.code !== 0) {
133133
return null;
134134
}
135135
return new Repository(BasePath.normalize(out.stdout.replace('\n', '')), gitRevision);

0 commit comments

Comments
 (0)