Improve output of '--version'
This commit is contained in:
parent
53b3781fbb
commit
ed60c62432
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ def main():
|
||||||
["git", "rev-parse", "HEAD"],
|
["git", "rev-parse", "HEAD"],
|
||||||
cwd=os.path.dirname(os.path.abspath(__file__)),
|
cwd=os.path.dirname(os.path.abspath(__file__)),
|
||||||
stderr=devnull,
|
stderr=devnull,
|
||||||
)
|
).decode("ascii")
|
||||||
hash_msg = " (git %s)" % git_hash[:10]
|
hash_msg = " (git %s)" % git_hash[:10]
|
||||||
except (OSError, subprocess.CalledProcessError):
|
except (OSError, subprocess.CalledProcessError):
|
||||||
hash_msg = ""
|
hash_msg = ""
|
||||||
|
|
Loading…
Reference in a new issue