mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-15 22:13:17 +00:00
trivial: contrib/get-version.py: require git less hard
This commit is contained in:
parent
d630b5ee66
commit
4c39d7f35f
@ -23,7 +23,7 @@ def get_version_git():
|
|||||||
try:
|
try:
|
||||||
version = subprocess.check_output(['git', 'describe'], stderr=subprocess.DEVNULL)
|
version = subprocess.check_output(['git', 'describe'], stderr=subprocess.DEVNULL)
|
||||||
return version.strip().decode('utf-8')
|
return version.strip().decode('utf-8')
|
||||||
except subprocess.CalledProcessError:
|
except (subprocess.CalledProcessError, PermissionError, FileNotFoundError):
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
def get_version():
|
def get_version():
|
||||||
|
Loading…
Reference in New Issue
Block a user