##// END OF EJS Templates
make convert-repo deal with git symbolic refs....
Alexis S. L. Carvalho -
r2657:e6a7a6a3 default
parent child Browse files
Show More
@@ -28,7 +28,8 b' class convert_git:'
28 self.path = path
28 self.path = path
29
29
30 def getheads(self):
30 def getheads(self):
31 return [file(self.path + "/HEAD").read()[:-1]]
31 fh = os.popen("GIT_DIR=%s git-rev-parse --verify HEAD" % self.path)
32 return [fh.read()[:-1]]
32
33
33 def catfile(self, rev, type):
34 def catfile(self, rev, type):
34 if rev == "0" * 40: raise IOError()
35 if rev == "0" * 40: raise IOError()
General Comments 0
You need to be logged in to leave comments. Login now