]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
Use author date to sort tags
authorKacper Kornet <draenog@pld-linux.org>
Sat, 28 Jul 2012 17:42:21 +0000 (18:42 +0100)
committerKacper Kornet <draenog@pld-linux.org>
Sat, 28 Jul 2012 17:42:21 +0000 (18:42 +0100)
Committer date was set to date of conversion from git, so it is
not good for sorting tags.

client/make-request.sh

index cdb8208dc627aaa4d94993a5795f7303f703d400..e70d47425487c09a8a7cb2b4d8062583219fb33d 100755 (executable)
@@ -161,7 +161,7 @@ autotag() {
                # ensure package ends with .spec
                s=${s%.spec}.spec
                local gitdir=$(dirname $s)/.git
-               out=$(git --git-dir="$gitdir" for-each-ref --count=1 --sort=-committerdate refs/tags/auto/$dist \
+               out=$(git --git-dir="$gitdir" for-each-ref --count=1 --sort=-authordate refs/tags/auto/$dist \
                        --format='%(refname:short)')
                echo "$s:$out"
        done
This page took 0.139033 seconds and 4 git commands to generate.