[packages/rpm-build-macros] fetch tags before figuring out last tag

glen glen at pld-linux.org
Mon Aug 6 20:48:20 CEST 2012


commit 39da278caad038ab14641ed7e0888a9e79fd02e4
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Aug 6 21:48:17 2012 +0300

    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"


More information about the pld-cvs-commit mailing list