From 6eb4dc24fe314ce5c98b05b21988402cda95afce Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Thu, 5 Oct 2017 14:21:00 -0400 Subject: tools: Give specific --abbrev=8 to "git describe" The tools that use "git describe" were just assuming a consisent number of characters in the hash. It seems ubuntu 16.04 would use 7 and later versions use 8. To avoid that discrepency in developer environments, set it to 8. --- tools/read-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/read-version') diff --git a/tools/read-version b/tools/read-version index ddb28383..d9ed30da 100755 --- a/tools/read-version +++ b/tools/read-version @@ -56,7 +56,7 @@ if os.path.isdir(os.path.join(_tdir, ".git")) and which("git"): flags = [] if use_tags: flags = ['--tags'] - cmd = ['git', 'describe', '--match=[0-9]*'] + flags + cmd = ['git', 'describe', '--abbrev=8', '--match=[0-9]*'] + flags version = tiny_p(cmd).strip() -- cgit v1.2.3