mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +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():
|
def _getGitRevision():
|
||||||
try:
|
try:
|
||||||
revcount = runcmd('git rev-list --count HEAD', getOutput=True, echoCmd=False)
|
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:
|
except:
|
||||||
return None
|
return None
|
||||||
return "{}+{}".format(revcount, revhash)
|
return "{}+{}".format(revcount, revhash)
|
||||||
|
|||||||
Reference in New Issue
Block a user