commit 057cd5df11895c93f2b74ce9d0cfad18512c2ec8
Author: Elan Ruusamäe <[email protected]>
Date:   Fri Aug 24 11:28:31 2012 +0300

    sync autotag() from rpm-build-tools

 client/make-request.sh | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/client/make-request.sh b/client/make-request.sh
index 4451ef0..0ea3352 100755
--- a/client/make-request.sh
+++ b/client/make-request.sh
@@ -160,16 +160,15 @@ autotag() {
                s=${s%:*}
                # ensure package ends with .spec
                s=${s%.spec}.spec
-               local gitdir=$(dirname $s)/.git
-               git --git-dir="$gitdir" fetch --tags
-               out=$(git --git-dir="$gitdir" for-each-ref --count=1 
--sort=-authordate refs/tags/auto/$dist \
+               git fetch --tags
+               out=$(git for-each-ref --count=1 --sort=-authordate 
refs/tags/auto/$dist \
                        --format='%(refname:short)')
                echo "$s:$out"
        done
 }
 
 # get autotag for specs
-# WARNING: This may checkout some files from CVS
+# WARNING: This may checkout some files from VCS
 get_autotag() {
        local pkg spec rpmdir
 
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to