mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-12 12:51:22 +04:00
24 lines
544 B
Python
24 lines
544 B
Python
|
|
import subprocess
|
||
|
|
import datetime
|
||
|
|
|
||
|
|
|
||
|
|
def get_fast_git_version_id():
|
||
|
|
try:
|
||
|
|
version = (
|
||
|
|
subprocess.check_output(
|
||
|
|
[
|
||
|
|
"git",
|
||
|
|
"describe",
|
||
|
|
"--always",
|
||
|
|
"--dirty",
|
||
|
|
"--all",
|
||
|
|
"--long",
|
||
|
|
]
|
||
|
|
)
|
||
|
|
.strip()
|
||
|
|
.decode()
|
||
|
|
)
|
||
|
|
return (version, datetime.date.today())
|
||
|
|
except Exception as e:
|
||
|
|
print("Failed to check for git changes", e)
|