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
b7e084a9
Commit
b7e084a9
authored
Dec 21, 2018
by
Guilhem Saurel
Browse files
Repo: ignore update of projects without a main namespace
parent
ce145270
Pipeline
#2036
passed with stages
in 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
b7e084a9
...
...
@@ -12,9 +12,8 @@ from django.template.loader import get_template
from
django.utils.dateparse
import
parse_datetime
from
django.utils.safestring
import
mark_safe
import
requests
import
git
import
requests
from
autoslug
import
AutoSlugField
from
ndh.models
import
Links
,
NamedModel
,
TimeStampedModel
from
ndh.utils
import
enum_to_choices
,
query_sum
...
...
@@ -546,6 +545,8 @@ class Repo(TimeStampedModel):
def
update
(
self
,
pull
=
True
):
ok
=
True
if
self
.
project
.
main_namespace
is
None
:
return
self
.
project
.
update_tags
()
if
pull
:
ok
=
self
.
fetch
()
...
...
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