[projects/pld-builder.new] sync autotag() from rpm-build-tools

glen glen at pld-linux.org
Fri Aug 24 10:31:12 CEST 2012


commit 057cd5df11895c93f2b74ce9d0cfad18512c2ec8
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Aug 24 11:28:31 2012 +0300

    sync autotag() from rpm-build-tools

 client/make-request.sh | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/client/make-request.sh b/client/make-request.sh
index 4451ef0..0ea3352 100755
--- a/client/make-request.sh
+++ b/client/make-request.sh
@@ -160,16 +160,15 @@ autotag() {
 		s=${s%:*}
 		# ensure package ends with .spec
 		s=${s%.spec}.spec
-		local gitdir=$(dirname $s)/.git
-		git --git-dir="$gitdir" fetch --tags
-		out=$(git --git-dir="$gitdir" for-each-ref --count=1 --sort=-authordate refs/tags/auto/$dist \
+		git fetch --tags
+		out=$(git for-each-ref --count=1 --sort=-authordate refs/tags/auto/$dist \
 			--format='%(refname:short)')
 		echo "$s:$out"
 	done
 }
 
 # get autotag for specs
-# WARNING: This may checkout some files from CVS
+# WARNING: This may checkout some files from VCS
 get_autotag() {
 	local pkg spec rpmdir
 


More information about the pld-cvs-commit mailing list