mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-02 02:31:38 +02:00
parent
53d02df854
commit
5a1a600327
5 changed files with 20 additions and 5 deletions
|
@ -9,7 +9,10 @@ import subprocess
|
|||
|
||||
|
||||
def get_git_sha():
|
||||
return subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD']).decode('ascii').strip()
|
||||
try:
|
||||
return subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD']).decode('ascii').strip()
|
||||
except:
|
||||
return "0000000"
|
||||
|
||||
def readVersion(path):
|
||||
f = open(path, "r")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue