mirror of
1
0
Fork 0

Improve output of '--version'

This commit is contained in:
Anish Athalye 2023-07-09 14:51:45 -04:00
parent 53b3781fbb
commit ed60c62432
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ def main():
["git", "rev-parse", "HEAD"],
cwd=os.path.dirname(os.path.abspath(__file__)),
stderr=devnull,
)
).decode("ascii")
hash_msg = " (git %s)" % git_hash[:10]
except (OSError, subprocess.CalledProcessError):
hash_msg = ""