[packages/rpm-build-tools/merge-pld-builder-client: 2227/2675] Rewrite autotag for git
glen
glen at pld-linux.org
Mon Dec 19 22:03:12 CET 2016
commit 039bb1074ac2928b55c1bfbe816c66f21de0125b
Author: Kacper Kornet <draenog at pld-linux.org>
Date: Sat Jul 28 16:45:42 2012 +0100
Rewrite autotag for git
make-request.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/make-request.sh b/make-request.sh
index 35b94f9..cdb8208 100755
--- a/make-request.sh
+++ b/make-request.sh
@@ -160,7 +160,9 @@ autotag() {
s=${s%:*}
# ensure package ends with .spec
s=${s%.spec}.spec
- out=$(cvs status -v $s | awk "!/Sticky/&&/auto-$dist-/{if (!a++) print \$1}")
+ local gitdir=$(dirname $s)/.git
+ out=$(git --git-dir="$gitdir" for-each-ref --count=1 --sort=-committerdate refs/tags/auto/$dist \
+ --format='%(refname:short)')
echo "$s:$out"
done
}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/cca6584b96e6c33d0732d559e43e100d804e2ecd
More information about the pld-cvs-commit
mailing list