Removed an unnecessary check for the remote in fetch_hash()
authorKalle Vahlman <kalle.vahlman@movial.com>
Fri, 21 Aug 2009 05:57:26 +0000 (08:57 +0300)
committerKalle Vahlman <kalle.vahlman@movial.com>
Fri, 21 Aug 2009 06:04:22 +0000 (09:04 +0300)
This incidentally makes it possible to have newly-created repos in src/
which is a very nice side-effect.

matrix/repositories.py

index 64ad4c8..da2abe1 100644 (file)
@@ -127,7 +127,7 @@ class Repository(object):
                        return
 
                if os.path.exists(self.path + "/.git"):
-                       url, branch = self.__get_url_branch()
+                       branch = git.branch_active(self.path)
                        self.__hash = git.rev_parse(self.path, branch)
                        return