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
2319683f
Commit
2319683f
authored
May 31, 2021
by
Guilhem Saurel
Browse files
fix CI
parent
b2b8f537
Pipeline
#14762
failed with stage
in 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
2319683f
...
...
@@ -339,9 +339,11 @@ class Project(Links, NamedModel, TimeStampedModel):
branch
=
str
(
self
.
main_branch
()).
split
(
'/'
,
maxsplit
=
2
)[
2
]
self
.
git
().
head
.
commit
=
self
.
git
().
remotes
[
self
.
main_repo
().
git_remote
()].
refs
[
branch
].
commit
def
main_gitlab_repo
(
self
):
return
self
.
repo_set
.
get
(
forge__source
=
SOURCES
.
gitlab
,
namespace
=
self
.
main_namespace
)
def
ci_jobs
(
self
):
if
self
.
main_forge
.
source
==
SOURCES
.
gitlab
:
self
.
main_repo
().
get_jobs_gitlab
()
self
.
main_gitlab_repo
().
get_jobs_gitlab
()
def
update
(
self
,
only_main_branches
=
True
):
if
self
.
main_namespace
is
None
:
...
...
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