This commit is contained in:
Joao Moreno
2018-09-19 11:54:01 +02:00
parent ba076500a8
commit 42f6ffc872
3 changed files with 8 additions and 0 deletions

View File

@@ -1287,6 +1287,8 @@ export class Repository {
err.gitErrorCode = GitErrorCodes.NoStashFound;
} else if (/error: Your local changes to the following files would be overwritten/.test(err.stderr || '')) {
err.gitErrorCode = GitErrorCodes.LocalChangesOverwritten;
} else if (/^CONFLICT/m.test(err.stdout || '')) {
err.gitErrorCode = GitErrorCodes.StashConflict;
}
throw err;