Skip to content

Commit

Permalink
feat(git): Pass --no-verify to git commit and push (#6526)
Browse files Browse the repository at this point in the history
Fixes #6521
  • Loading branch information
hussainweb committed Jun 17, 2020
1 parent c4a0940 commit 8ac8f42
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/platform/git/storage.ts
Expand Up @@ -533,7 +533,9 @@ export class Storage {
}
}
}
const commitRes = await this._git.commit(message);
const commitRes = await this._git.commit(message, [], {
'--no-verify': true,
});
const commit = commitRes?.commit || 'unknown';
if (!force && !(await this.hasDiff(`origin/${branchName}`))) {
logger.debug(
Expand All @@ -545,6 +547,7 @@ export class Storage {
await this._git.push('origin', `${branchName}:${branchName}`, {
'--force': true,
'-u': true,
'--no-verify': true,
});
// Fetch it after create
const ref = `refs/heads/${branchName}:refs/remotes/origin/${branchName}`;
Expand Down

0 comments on commit 8ac8f42

Please sign in to comment.