]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
Rewrite autotag for git
authorKacper Kornet <draenog@pld-linux.org>
Sat, 28 Jul 2012 15:45:42 +0000 (16:45 +0100)
committerKacper Kornet <draenog@pld-linux.org>
Sat, 28 Jul 2012 15:45:42 +0000 (16:45 +0100)
client/make-request.sh

index 35b94f9fe5fb374a19cc61a12cb0f51ffdfb3cc6..cdb8208dc627aaa4d94993a5795f7303f703d400 100755 (executable)
@@ -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
 }
This page took 0.13615 seconds and 4 git commands to generate.