From 39da278caad038ab14641ed7e0888a9e79fd02e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 6 Aug 2012 21:48:17 +0300 Subject: [PATCH] fetch tags before figuring out last tag --- rpm-build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/rpm-build.sh b/rpm-build.sh index ac44f38..a04dc94 100755 --- a/rpm-build.sh +++ b/rpm-build.sh @@ -120,6 +120,7 @@ autotag() { s=${s%:*} # ensure package ends with .spec s=${s%.spec}.spec + git fetch --tags out=$(git for-each-ref --count=1 --sort=-authordate refs/tags/auto/$dist \ --format='%(refname:short)') echo "$s:$out" -- 2.43.0