convert-repo: use .git/objects/ rather than .git/HEAD to detect git repos
authorMatt Mackall <mpm@selenic.com>
Wed, 21 Feb 2007 11:02:37 -0600
changeset 4111 06d65498f73b
parent 4101 e2ed92f4c0f7
child 4112 c097b6f4f082
convert-repo: use .git/objects/ rather than .git/HEAD to detect git repos
contrib/convert-repo
--- a/contrib/convert-repo
+++ b/contrib/convert-repo
@@ -293,7 +293,7 @@ class convert_git:
         if os.path.isdir(path + "/.git"):
             path += "/.git"
         self.path = path
-        if not os.path.exists(path + "/HEAD"):
+        if not os.path.exists(path + "/objects"):
             raise NoRepo("couldn't open GIT repo %s" % path)
 
     def getheads(self):