Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
fc5221e8
Commit
fc5221e8
authored
Sep 18, 2019
by
Guilhem Saurel
Browse files
update: don’t update stuff from archived projects
parent
a2d65216
Pipeline
#5722
passed with stage
in 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/management/commands/update.py
View file @
fc5221e8
...
...
@@ -20,12 +20,12 @@ class Command(BaseCommand):
forge
.
get_projects
()
log
(
f
'
\n
Updating all repos
\n
'
)
for
repo
in
Repo
.
objects
.
all
(
):
for
repo
in
Repo
.
objects
.
exclude
(
project__archived
=
True
):
log
(
f
'
{
repo
}
'
)
repo
.
update
()
log
(
f
'
\n
Updating all branches
\n
'
)
for
branch
in
Branch
.
objects
.
all
(
):
for
branch
in
Branch
.
objects
.
exclude
(
project__archived
=
True
):
log
(
f
'
{
branch
.
project
}
-
{
branch
}
'
)
branch
.
update
(
pull
=
False
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment