From 161482ccb686316152247fa533182b39ab82b999 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Mon, 22 Nov 2010 00:16:26 -0500 Subject: [PATCH] Fixed bug, wasn't setting default ref correctly for git repos without a master branch --- browser/vcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/vcs.py b/browser/vcs.py index 84ca734..1d23509 100644 --- a/browser/vcs.py +++ b/browser/vcs.py @@ -117,7 +117,7 @@ class Git(VCS): if 'master' in self.branches(): self._ref = 'master' else: - self.ref = self.branches()[0] + self._ref = self.branches()[0] def branches(self): if not self._branches: self._branches = dict([(head.name, self.commit(head.commit)) for head in self._repo.heads])