mirror of
https://github.com/frej/fast-export.git
synced 2025-11-02 09:15:48 +01:00
work with newer git versions
This commit is contained in:
@@ -25,7 +25,10 @@ for o, a in opts:
|
||||
sout, sin, serr = popen2.popen3("git-name-rev --tags `git-rev-parse %s`" % branch)
|
||||
output = sout.read()
|
||||
tagIdx = output.index(" tags/p4/")
|
||||
caretIdx = output.index("^")
|
||||
try:
|
||||
caretIdx = output.index("^")
|
||||
except:
|
||||
caretIdx = len(output) - 1
|
||||
rev = int(output[tagIdx + 9 : caretIdx])
|
||||
|
||||
allTags = os.popen("git tag -l p4/").readlines()
|
||||
|
||||
Reference in New Issue
Block a user