Skip to content

Commit

Permalink
Updated setup.py's usage of git to grab the current commit hash
Browse files Browse the repository at this point in the history
  • Loading branch information
devttys0 committed Oct 19, 2017
1 parent 62c5470 commit 3c5c78b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# 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
Expand Down

0 comments on commit 3c5c78b

Please sign in to comment.