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
4a427adc
Commit
4a427adc
authored
7 years ago
by
Rhys Arkins
Browse files
Options
Downloads
Patches
Plain Diff
fix: don’t clean branches if repository is not found or blocked
parent
4c267b21
No related branches found
Branches containing commit
Tags
v11.17.8
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/workers/repository/error.js
+3
-1
3 additions, 1 deletion
lib/workers/repository/error.js
with
3 additions
and
1 deletion
lib/workers/repository/error.js
+
3
−
1
View file @
4a427adc
...
...
@@ -18,10 +18,12 @@ async function handleError(config, err) {
delete
config
.
branchList
;
// eslint-disable-line no-param-reassign
return
err
.
message
;
}
else
if
(
err
.
message
===
'
blocked
'
)
{
delete
config
.
branchList
;
// eslint-disable-line no-param-reassign
logger
.
info
(
'
Repository is blocked - skipping
'
);
return
err
.
message
;
}
else
if
(
err
.
message
===
'
not-found
'
)
{
logger
.
info
(
'
Repository is not found
'
);
delete
config
.
branchList
;
// eslint-disable-line no-param-reassign
logger
.
warn
(
'
Repository is not found
'
);
return
err
.
message
;
}
else
if
(
err
.
message
===
'
fork
'
)
{
logger
.
info
(
'
Repository is a fork and not manually configured - skipping
'
);
...
...
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