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
6ef128c1
Commit
6ef128c1
authored
Nov 23, 2018
by
Guilhem Saurel
Browse files
details
parent
0f843fa6
Pipeline
#1901
passed with stages
in 45 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/management/commands/update.py
View file @
6ef128c1
...
...
@@ -22,7 +22,7 @@ class Command(BaseCommand):
log
(
f
'
\n
Updating all branches
\n
'
)
for
branch
in
Branch
.
objects
.
all
():
log
(
f
'
{
branch
}
'
)
log
(
f
'
{
branch
.
project
}
-
{
branch
}
'
)
branch
.
update
(
pull
=
False
)
log
(
f
'
\n
Pulling Robotpkg
\n
'
)
...
...
rainboard/models.py
View file @
6ef128c1
...
...
@@ -582,10 +582,12 @@ class Branch(TimeStampedModel):
self
.
repo
.
fetch
()
if
self
.
repo
!=
self
.
project
.
main_repo
():
self
.
project
.
main_repo
().
fetch
()
main_branch
=
self
.
project
.
main_branch
()
if
main_branch
is
not
None
:
try
:
main_branch
=
self
.
project
.
main_branch
()
self
.
ahead
=
self
.
get_ahead
(
main_branch
)
self
.
behind
=
self
.
get_behind
(
main_branch
)
except
Branch
.
DoesNotExists
:
pass
self
.
updated
=
self
.
git
().
commit
.
authored_datetime
except
(
git
.
exc
.
GitCommandError
,
IndexError
):
self
.
deleted
=
True
...
...
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