Commit 7386e0d5 authored by Doug Beck's avatar Doug Beck

Show correct hash for last remote commit.

Remove hard coded branch name.
parent 85dfd406
......@@ -312,7 +312,7 @@ class SubProject(models.Model):
'''
Returns latest remote commit we know.
'''
return self.git_repo.commit('origin/master')
return self.git_repo.commit('origin/%s' % self.branch)
def get_repoweb_link(self, filename, line):
'''
......
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