Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
42f6c5b2
Unverified
Commit
42f6c5b2
authored
3 years ago
by
Maksim
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix(bitbucket-server): handle push rejection properly (#11154)
parent
98ee4a56
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/util/git/index.ts
+9
-0
9 additions, 0 deletions
lib/util/git/index.ts
with
9 additions
and
0 deletions
lib/util/git/index.ts
+
9
−
0
View file @
42f6c5b2
...
...
@@ -837,6 +837,15 @@ export async function commitFiles({
error
.
validationMessage
=
`Renovate cannot push to its branch because branch protection has been enabled.`
;
throw
error
;
}
if
(
err
.
message
.
includes
(
'
can only push your own commits
'
))
{
const
error
=
new
Error
(
CONFIG_VALIDATION
);
error
.
validationSource
=
branchName
;
error
.
validationError
=
'
Bitbucket committer error
'
;
error
.
validationMessage
=
`Renovate has experienced the following error when attempting to push its branch to the server: "
${
String
(
err
.
message
)}
"`
;
throw
error
;
}
if
(
err
.
message
.
includes
(
'
remote: error: cannot lock ref
'
))
{
logger
.
error
({
err
},
'
Error committing files.
'
);
return
null
;
...
...
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