Created
February 8, 2017 20:14
-
-
Save edeno/e225d8e4ba3066615bcebaed5bcc7bb3 to your computer and use it in GitHub Desktop.
Record the git hash of your current run for log files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from subprocess import PIPE, run | |
print(run(['git', 'rev-parse', 'HEAD'], | |
stdout=PIPE, universal_newlines=True).stdout) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment