mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-06 18:15:17 +00:00
Should fix #607
This commit is contained in:
parent
6279135709
commit
1e7b8fadc5
@ -35,11 +35,14 @@ def get_git_revision_short_hash() -> str:
|
|||||||
"""
|
"""
|
||||||
Return the short hash of the current commit
|
Return the short hash of the current commit
|
||||||
"""
|
"""
|
||||||
return (
|
try:
|
||||||
subprocess.check_output(["git", "rev-parse", "--short", "HEAD"])
|
return (
|
||||||
.decode("ascii")
|
subprocess.check_output(["git", "rev-parse", "--short", "HEAD"])
|
||||||
.strip()
|
.decode("ascii")
|
||||||
)
|
.strip()
|
||||||
|
)
|
||||||
|
except:
|
||||||
|
return ""
|
||||||
|
|
||||||
|
|
||||||
def get_start_of_semester(d=date.today()):
|
def get_start_of_semester(d=date.today()):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user