Commit 3c5c78b4 by Craig Heffner

Updated setup.py's usage of git to grab the current commit hash

parent 62c54702
......@@ -24,7 +24,7 @@ except ImportError:
# include the git commit hash as part of the version number reported
# by binwalk.
try:
label = subprocess.check_output(["git", "describe"], stderr=DEVNULL).decode('utf-8')
label = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"], stderr=DEVNULL).decode('utf-8')
MODULE_VERSION = "%s-%s" % (MODULE_VERSION, label.split('-')[-1].strip())
except KeyboardInterrupt as e:
raise e
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment