[projects/pld-builder.new] Rewrite autotag for git
draenog
draenog at pld-linux.org
Sat Jul 28 17:52:46 CEST 2012
commit d235cd88b207bd0772da99f928f9bd69031e4cba
Author: Kacper Kornet <draenog at pld-linux.org>
Date: Sat Jul 28 16:45:42 2012 +0100
Rewrite autotag for git
client/make-request.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/client/make-request.sh b/client/make-request.sh
index 35b94f9..cdb8208 100755
--- a/client/make-request.sh
+++ b/client/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
}
More information about the pld-cvs-commit
mailing list