forked from M-Labs/artiq
versioneer: always use 8 characters to abbreviate git commit hashes
This commit is contained in:
parent
596800e391
commit
72c94fc8af
|
@ -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 is a tag matching tag_prefix, this yields TAG-NUM-gHEX[-dirty]
|
||||||
# if there isn't one, this yields HEX[-dirty] (no NUM)
|
# if there isn't one, this yields HEX[-dirty] (no NUM)
|
||||||
describe_out, rc = run_command(GITS, ["describe", "--tags", "--dirty",
|
describe_out, rc = run_command(GITS, ["describe", "--tags", "--dirty",
|
||||||
"--always", "--long",
|
"--always", "--long", "--abbrev=8",
|
||||||
"--match", "%s*" % tag_prefix],
|
"--match", "%s*" % tag_prefix],
|
||||||
cwd=root)
|
cwd=root)
|
||||||
# --long was added in git-1.5.5
|
# --long was added in git-1.5.5
|
||||||
|
|
Loading…
Reference in New Issue