Skip to content
Snippets Groups Projects
Unverified Commit 8ac8f42a authored by hussainweb's avatar hussainweb Committed by GitHub
Browse files

feat(git): Pass --no-verify to git commit and push (#6526)

Fixes #6521
parent c4a09400
No related branches found
No related tags found
No related merge requests found
...@@ -533,7 +533,9 @@ export class Storage { ...@@ -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'; const commit = commitRes?.commit || 'unknown';
if (!force && !(await this.hasDiff(`origin/${branchName}`))) { if (!force && !(await this.hasDiff(`origin/${branchName}`))) {
logger.debug( logger.debug(
...@@ -545,6 +547,7 @@ export class Storage { ...@@ -545,6 +547,7 @@ export class Storage {
await this._git.push('origin', `${branchName}:${branchName}`, { await this._git.push('origin', `${branchName}:${branchName}`, {
'--force': true, '--force': true,
'-u': true, '-u': true,
'--no-verify': true,
}); });
// Fetch it after create // Fetch it after create
const ref = `refs/heads/${branchName}:refs/remotes/origin/${branchName}`; const ref = `refs/heads/${branchName}:refs/remotes/origin/${branchName}`;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment