mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-05-26 23:19:33 +00:00
Fixed git version check on server #71
This commit is contained in:
@@ -18,7 +18,10 @@ ModelStateRole = 999
|
||||
|
||||
|
||||
def get_git_version(): # TODO import from animation
|
||||
return subprocess.check_output("git log --pretty=format:'%h' -n 1", shell=True).decode('UTF-8')
|
||||
try:
|
||||
return subprocess.check_output("git log --pretty=format:'%h' -n 1", shell=True).decode('UTF-8')
|
||||
except subprocess.CalledProcessError: # when no git repository info present
|
||||
return True # todo probably add special file
|
||||
|
||||
|
||||
class CheckState:
|
||||
|
||||
Reference in New Issue
Block a user