mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
Set the length of the revision ID to be output from rev-parse
This commit is contained in:
@@ -770,7 +770,7 @@ def getVcsRev():
|
||||
def _getGitRevision():
|
||||
try:
|
||||
revcount = runcmd('git rev-list --count HEAD', getOutput=True, echoCmd=False)
|
||||
revhash = runcmd('git rev-parse --short HEAD', getOutput=True, echoCmd=False)
|
||||
revhash = runcmd('git rev-parse --short=8 HEAD', getOutput=True, echoCmd=False)
|
||||
except:
|
||||
return None
|
||||
return "{}+{}".format(revcount, revhash)
|
||||
|
||||
Reference in New Issue
Block a user