Skip to content
Snippets Groups Projects
Commit 1faec514 authored by Yohan Jarosz's avatar Yohan Jarosz
Browse files

give the commit hash for version flag

parent bf1c3f6d
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,9 @@ def select(title, questions):
CURRENT_PATH = Path('.').abspath()
if __name__ == '__main__':
args = docopt(__doc__, version="IMP 1.0", options_first=True)
args = docopt(__doc__, version=subprocess.call(
['git', '--no-pager', 'log', '-n', '1', '--pretty=format:%H']
), options_first=True)
# get config file from cache
config_files = get_config_cache().split()
# delete if some config files are removed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment