mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-15 20:08:25 +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:
|
||||
version = subprocess.check_output(['git', 'describe'], stderr=subprocess.DEVNULL)
|
||||
return version.strip().decode('utf-8')
|
||||
except subprocess.CalledProcessError:
|
||||
except (subprocess.CalledProcessError, PermissionError, FileNotFoundError):
|
||||
return ''
|
||||
|
||||
def get_version():
|
||||
|
Loading…
Reference in New Issue
Block a user