Show More
@@ -20,9 +20,11 b' class convert_git(converter_source):' | |||||
20 | self.encoding = 'utf-8' |
|
20 | self.encoding = 'utf-8' | |
21 |
|
21 | |||
22 | def getheads(self): |
|
22 | def getheads(self): | |
23 |
|
|
23 | if not self.rev: | |
24 |
|
|
24 | return self.gitcmd('git-rev-parse --branches').read().splitlines() | |
25 | return [fh.read()[:-1]] |
|
25 | else: | |
|
26 | fh = self.gitcmd("git-rev-parse --verify %s" % self.rev) | |||
|
27 | return [fh.read()[:-1]] | |||
26 |
|
28 | |||
27 | def catfile(self, rev, type): |
|
29 | def catfile(self, rev, type): | |
28 | if rev == "0" * 40: raise IOError() |
|
30 | if rev == "0" * 40: raise IOError() |
General Comments 0
You need to be logged in to leave comments.
Login now