Skip to content

Commit

Permalink
fix(git-utils): Pass --no-verify to git push (#1376)
Browse files Browse the repository at this point in the history
Also, this condenses the two `git push` calls into one call.

Closes #1366
  • Loading branch information
hjylewis authored and evocateur committed Apr 16, 2018
1 parent 1d32497 commit 0b88ffb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/git-utils/index.js
Expand Up @@ -106,9 +106,7 @@ function pushWithTags(remote, tags, opts) {
log.silly("pushWithTags", [remote, tags]);

return Promise.resolve(exports.getCurrentBranch(opts)).then(branch =>
ChildProcessUtilities.exec("git", ["push", remote, branch], opts).then(() =>
ChildProcessUtilities.exec("git", ["push", remote].concat(tags), opts)
)
ChildProcessUtilities.exec("git", ["push", "--no-verify", remote, branch].concat(tags), opts)
);
}

Expand Down

0 comments on commit 0b88ffb

Please sign in to comment.