mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
Git - add extension API to get the repository root (#250044)
* Git - add extension API to get the repository root * Pull request feedback
This commit is contained in:
@@ -342,6 +342,8 @@ function getGitErrorCode(stderr: string): string | undefined {
|
||||
return GitErrorCodes.InvalidBranchName;
|
||||
} else if (/Please,? commit your changes or stash them/.test(stderr)) {
|
||||
return GitErrorCodes.DirtyWorkTree;
|
||||
} else if (/detected dubious ownership in repository at/.test(stderr)) {
|
||||
return GitErrorCodes.NotASafeGitRepository;
|
||||
}
|
||||
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user