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/make-tarball | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/make-tarball') diff --git a/tools/make-tarball b/tools/make-tarball index 91c45624..3197689f 100755 --- a/tools/make-tarball +++ b/tools/make-tarball @@ -35,7 +35,7 @@ while [ $# -ne 0 ]; do done rev=${1:-HEAD} -version=$(git describe "--match=[0-9]*" ${long_opt} $rev) +version=$(git describe --abbrev=8 "--match=[0-9]*" ${long_opt} $rev) archive_base="cloud-init-$version" if [ -z "$output" ]; then -- cgit v1.2.3