Mercurial > public > mercurial-scm > hg
diff contrib/convert-repo @ 4102:06d65498f73b
convert-repo: use .git/objects/ rather than .git/HEAD to detect git repos
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 21 Feb 2007 11:02:37 -0600 |
parents | 6b2909e84203 |
children | d5011e347476 |
line wrap: on
line diff
--- a/contrib/convert-repo Sat Feb 17 04:50:06 2007 -0200 +++ b/contrib/convert-repo Wed Feb 21 11:02:37 2007 -0600 @@ -293,7 +293,7 @@ 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):