From 8ac8f42a226b3f984aba19da01c033adc4d3a883 Mon Sep 17 00:00:00 2001 From: hussainweb Date: Wed, 17 Jun 2020 00:48:05 -0400 Subject: [PATCH] feat(git): Pass --no-verify to git commit and push (#6526) Fixes #6521 --- lib/platform/git/storage.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/platform/git/storage.ts b/lib/platform/git/storage.ts index ff14d4c2cf04cd..1784abbfc1ebc3 100644 --- a/lib/platform/git/storage.ts +++ b/lib/platform/git/storage.ts @@ -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( @@ -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}`;