add error code for git blame

This commit is contained in:
rebornix
2019-01-15 11:56:48 -08:00
parent e5a596be29
commit f27183be67
2 changed files with 6 additions and 1 deletions

View File

@@ -1291,6 +1291,10 @@ export class Repository {
return result.stdout.trim();
} catch (err) {
if (/^fatal: no such path/.test(err.stderr || '')) {
err.gitErrorCode = GitErrorCodes.NoPathFound;
}
throw err;
}
}