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
de678912
Commit
de678912
authored
Nov 28, 2018
by
Guilhem Saurel
Browse files
dont try to update orphans
parent
676508ce
Pipeline
#1943
passed with stages
in 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
de678912
...
...
@@ -299,6 +299,8 @@ class Project(Links, NamedModel, TimeStampedModel):
Tag
.
objects
.
get_or_create
(
name
=
str
(
tag
),
project
=
self
)
def
update
(
self
):
if
self
.
main_namespace
is
None
:
return
self
.
update_branches
()
self
.
update_tags
()
tag
=
self
.
tag_set
.
filter
(
name__startswith
=
'v'
).
last
()
# TODO: implement SQL ordering for semver
...
...
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