Commit 8330f7e6 by Craig Heffner

Removed unecessary git output parsing

parent 3c5c78b4
......@@ -25,7 +25,7 @@ except ImportError:
# by binwalk.
try:
label = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"], stderr=DEVNULL).decode('utf-8')
MODULE_VERSION = "%s-%s" % (MODULE_VERSION, label.split('-')[-1].strip())
MODULE_VERSION = "%s-%s" % (MODULE_VERSION, label.strip())
except KeyboardInterrupt as e:
raise e
except Exception:
......
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