From 72c94fc8af4d8c5d792471285171bbd88c001e71 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 7 Jun 2017 02:10:17 +0800 Subject: [PATCH] versioneer: always use 8 characters to abbreviate git commit hashes --- versioneer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versioneer.py b/versioneer.py index 64fea1c89..68e58376b 100644 --- a/versioneer.py +++ b/versioneer.py @@ -1047,7 +1047,7 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): # if there is a tag matching tag_prefix, this yields TAG-NUM-gHEX[-dirty] # if there isn't one, this yields HEX[-dirty] (no NUM) describe_out, rc = run_command(GITS, ["describe", "--tags", "--dirty", - "--always", "--long", + "--always", "--long", "--abbrev=8", "--match", "%s*" % tag_prefix], cwd=root) # --long was added in git-1.5.5