minor cleanup
This commit is contained in:
parent
e36d6af2c2
commit
1d7cbca64d
|
@ -358,20 +358,6 @@ def getGitVersion(tagPrefix):
|
|||
if not os.path.isdir(os.path.join(path, '.git')):
|
||||
return None
|
||||
|
||||
# Find last tag matching "tagPrefix.*"
|
||||
#tagNames = check_output(['git', 'tag'], universal_newlines=True).strip().split('\n')
|
||||
#tagNames = [x for x in tagNames if re.match(tagPrefix + r'\d+\.\d+\..*', x)]
|
||||
#tagNames.sort(key=lambda s: map(int, s[len(tagPrefix):].split('.')))
|
||||
#lastTagName = tagNames[-1]
|
||||
#gitVersion = lastTagName.replace(tagPrefix, '')
|
||||
|
||||
## is this commit an unchanged checkout of the last tagged version?
|
||||
#lastTag = gitCommit(lastTagName)
|
||||
#head = gitCommit('HEAD')
|
||||
#if head != lastTag:
|
||||
#branch = getGitBranch()
|
||||
#gitVersion = gitVersion + "-%s-%s" % (branch, head[:10])
|
||||
|
||||
gitVersion = check_output(['git', 'describe', '--tags']).strip().decode('utf-8')
|
||||
|
||||
# any uncommitted modifications?
|
||||
|
|
Loading…
Reference in New Issue