Mercurial > hg-stable
changeset 2657:e6a7a6a33a62
make convert-repo deal with git symbolic refs.
Problem noticed by Sébastien Pierre
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Mon, 24 Jul 2006 13:47:29 -0700 |
parents | df5e58c84b01 |
children | 2be3001847cb |
files | contrib/convert-repo |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/convert-repo Mon Jul 24 09:22:47 2006 -0700 +++ b/contrib/convert-repo Mon Jul 24 13:47:29 2006 -0700 @@ -28,7 +28,8 @@ 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()