mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 12:33:35 +01:00
Add DirtyWorkTree git error matching to git exec (#73108)
This commit is contained in:
committed by
GitHub
parent
b72fba1a56
commit
a5455afcef
@@ -306,6 +306,8 @@ function getGitErrorCode(stderr: string): string | undefined {
|
||||
return GitErrorCodes.BranchAlreadyExists;
|
||||
} else if (/'.+' is not a valid branch name/.test(stderr)) {
|
||||
return GitErrorCodes.InvalidBranchName;
|
||||
} else if (/Please,? commit your changes or stash them/.test(stderr)) {
|
||||
return GitErrorCodes.DirtyWorkTree;
|
||||
}
|
||||
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user