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
40869dbe
Commit
40869dbe
authored
Jul 10, 2018
by
Guilhem Saurel
Browse files
Project.cmake in Project.update
parent
1f9d2ed4
Pipeline
#912
passed with stages
in 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
40869dbe
...
...
@@ -199,7 +199,6 @@ class Project(Links, NamedModel, TimeStampedModel):
instance
,
bcreated
=
Branch
.
objects
.
get_or_create
(
name
=
branch
,
project
=
self
,
repo
=
repo
)
if
bcreated
:
instance
.
update
(
pull
=
pull
)
self
.
cmake
()
def
main_branch
(
self
):
heads
=
self
.
git
().
heads
...
...
@@ -252,6 +251,7 @@ class Project(Links, NamedModel, TimeStampedModel):
self
.
updated
=
robotpkg
.
updated
else
:
self
.
updated
=
max
(
branch
.
updated
,
robotpkg
.
updated
)
self
.
cmake
()
self
.
save
()
def
commits_since
(
self
):
...
...
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