From f43d21eab3159868814c3df421bd1f08cfa5be03 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Thu, 2 Sep 2021 14:32:10 +0200 Subject: [PATCH] always have git hash in version string --- src/tools/genVersionHeader.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/genVersionHeader.pl b/src/tools/genVersionHeader.pl index 2466aef6b..a1354e66e 100644 --- a/src/tools/genVersionHeader.pl +++ b/src/tools/genVersionHeader.pl @@ -75,7 +75,7 @@ if (!$vcs && -d "$opt_t/.git") { # Git # v1-4-abcdef-dirty # is 4 commits after tag 'v1' with short hash abcdef # with uncommited modifications - my $result = `git describe --always --tags --dirty --abbrev=20`; + my $result = `git describe --always --tags --dirty --long`; chomp $result; print "== git describe:\n$result\n==\n" if $opt_v; if (!$? && $result ne '') {