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
1c589ede
Commit
1c589ede
authored
Feb 09, 2018
by
Guilhem Saurel
Browse files
fix commits_since
parent
57508978
Changes
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
1c589ede
...
...
@@ -240,7 +240,7 @@ class Project(Links, NamedModel, TimeStampedModel):
self
.
save
()
def
commits_since
(
self
):
commits
=
self
.
git
().
git
.
rev_list
(
f
'
{
self
.
version
}
..
{
self
.
main_branch
()
}
'
)
commits
=
self
.
git
().
git
.
rev_list
(
f
'
v
{
self
.
version
}
..
{
self
.
main_branch
()
}
'
)
return
len
(
commits
.
split
(
'
\n
'
))
if
commits
else
0
def
open_issues
(
self
):
...
...
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