Skip to content

Commit

Permalink
fix: throw error if git push fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Jan 28, 2021
1 parent f32fadc commit 1db3252
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ abstract class Repository extends AsyncOptionalCreatable {
public pushChangesToGit(): void {
const branch = this.getBranchName();
const cmd = `npx git push --set-upstream --no-verify --follow-tags origin ${branch}`;
this.ux.log(cmd);
exec(cmd, { silent: false });
this.execCommand(cmd, false);
}

public revertUnstagedChanges(): void {
Expand Down

0 comments on commit 1db3252

Please sign in to comment.