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
4f988524
Commit
4f988524
authored
Feb 11, 2019
by
Guilhem Saurel
Browse files
Revert "update branches for real…"
This reverts commit
427e3f38
.
parent
427e3f38
Changes
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
4f988524
...
...
@@ -247,8 +247,9 @@ class Project(Links, NamedModel, TimeStampedModel):
})
if
created
:
repo
.
api_update
()
instance
,
_
=
Branch
.
objects
.
get_or_create
(
name
=
branch
,
project
=
self
,
repo
=
repo
)
instance
.
update
(
pull
=
pull
)
instance
,
bcreated
=
Branch
.
objects
.
get_or_create
(
name
=
branch
,
project
=
self
,
repo
=
repo
)
if
bcreated
:
instance
.
update
(
pull
=
pull
)
def
checkout
(
self
):
self
.
main_branch
().
git
().
checkout
()
...
...
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