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
427e3f38
Commit
427e3f38
authored
Feb 11, 2019
by
Guilhem Saurel
Browse files
update branches for real…
parent
c997a172
Pipeline
#2749
passed with stages
in 1 minute and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
427e3f38
...
...
@@ -247,9 +247,8 @@ class Project(Links, NamedModel, TimeStampedModel):
})
if
created
:
repo
.
api_update
()
instance
,
bcreated
=
Branch
.
objects
.
get_or_create
(
name
=
branch
,
project
=
self
,
repo
=
repo
)
if
bcreated
:
instance
.
update
(
pull
=
pull
)
instance
,
_
=
Branch
.
objects
.
get_or_create
(
name
=
branch
,
project
=
self
,
repo
=
repo
)
instance
.
update
(
pull
=
pull
)
def
checkout
(
self
):
self
.
main_branch
().
git
().
checkout
()
...
...
Guilhem Saurel
@gsaurel
mentioned in commit
4f988524
·
Feb 11, 2019
mentioned in commit
4f988524
mentioned in commit 4f9885248a0361c8a7bcae91097d91b3c251b806
Toggle commit list
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