Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SmartDataLab
public
applications
renovate
Commits
8ac8f42a
Unverified
Commit
8ac8f42a
authored
5 years ago
by
hussainweb
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/platform/git/storage.ts
+4
-1
4 additions, 1 deletion
lib/platform/git/storage.ts
with
4 additions
and
1 deletion
lib/platform/git/storage.ts
+
4
−
1
View file @
8ac8f42a
...
@@ -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
}
`
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment