2023-04-25 17:06:14 +02:00
|
|
|
import subprocess
|
|
|
|
|
|
|
|
|
|
|
|
def git_describe(request) -> str:
|
2023-10-18 13:03:58 +02:00
|
|
|
# try:
|
|
|
|
# git_describe = subprocess.check_output(
|
|
|
|
# ["git", "describe", "--always"], stderr=subprocess.STDOUT
|
|
|
|
# ).decode()
|
|
|
|
# except subprocess.CalledProcessError as e:
|
|
|
|
# print("Exception on process, rc=", e.returncode, "output=", e.output)
|
|
|
|
# git_describe = ""
|
2023-04-25 17:06:14 +02:00
|
|
|
|
2023-10-18 13:03:58 +02:00
|
|
|
# try:
|
|
|
|
# git_date = subprocess.check_output(
|
|
|
|
# ["git", "show", "-s", r"--format=%cd", r"--date=format:%d-%m-%Y"], stderr=subprocess.STDOUT
|
|
|
|
# ).decode()
|
|
|
|
# except subprocess.CalledProcessError as e:
|
|
|
|
# print("Exception on process, rc=", e.returncode, "output=", e.output)
|
|
|
|
# git_date = ""
|
2023-04-25 17:06:14 +02:00
|
|
|
|
2023-10-18 13:03:58 +02:00
|
|
|
# return {
|
|
|
|
# "git_describe": git_describe,
|
|
|
|
# "git_date": git_date
|
|
|
|
# }
|
|
|
|
return ""
|