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
7276134c
Commit
7276134c
authored
Jul 19, 2018
by
Guilhem Saurel
Browse files
main branches: on main repo
parent
c84fe536
Pipeline
#998
passed with stages
in 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
7276134c
...
...
@@ -185,7 +185,7 @@ class Project(Links, NamedModel, TimeStampedModel):
for
branch
in
branches
:
logger
.
info
(
f
'update branch
{
branch
}
'
)
if
branch
in
MAIN_BRANCHES
:
instance
,
bcreated
=
Branch
.
objects
.
get_or_create
(
name
=
branch
,
project
=
self
)
instance
,
bcreated
=
Branch
.
objects
.
get_or_create
(
name
=
branch
,
project
=
self
,
repo
=
self
.
main_repo
()
)
else
:
if
branch
.
startswith
(
'remotes/'
):
branch
=
branch
[
8
:]
...
...
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