Commit 1c589ede authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

fix commits_since

parent 57508978
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment