chore: sparo exit with the same code when git pull fails

This commit is contained in:
Cheng Liu 2024-07-11 15:48:13 -07:00
parent f5e91ca3f4
commit d27a941ae5
No known key found for this signature in database
GPG key ID: EEC8452F7DB85CD6

View file

@ -74,7 +74,8 @@ export class PullCommand implements ICommand<IPullCommandOptions> {
if (pullProcess.status !== 0) {
// Pull failed
throw new Error(`"git pull" operation failed (exit code ${pullProcess.status})`);
process.exitCode = pullProcess.status || 1;
throw new Error(`"git pull" operation failed`);
}
// check whether profile exist in local branch