commit 039bb1074ac2928b55c1bfbe816c66f21de0125b
Author: Kacper Kornet <[email protected]>
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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to