From 81642caf24bf0f32e5db0abe9541ef89ef19fc26 Mon Sep 17 00:00:00 2001 From: hw Date: Tue, 16 Jun 2020 15:26:01 -0400 Subject: [PATCH] feat(git): Pass --no-verify to git commit and push 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}`;