changeset 2658:2be3001847cb 0.9.1

Merge with crew
author Matt Mackall <mpm@selenic.com>
date Mon, 24 Jul 2006 17:06:39 -0500
parents 6024216754f4 (current diff) e6a7a6a33a62 (diff)
children 93b765f30c07 489c3bacce96
files
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/convert-repo
+++ b/contrib/convert-repo
@@ -28,7 +28,8 @@ class convert_git:
         self.path = path
 
     def getheads(self):
-        return [file(self.path + "/HEAD").read()[:-1]]
+        fh = os.popen("GIT_DIR=%s git-rev-parse --verify HEAD" % self.path)
+        return [fh.read()[:-1]]
 
     def catfile(self, rev, type):
         if rev == "0" * 40: raise IOError()