[packages/rpm-build-tools/merge-pld-builder-client: 2288/2675] sync autotag() from rpm-build-tools
glen
glen at pld-linux.org
Mon Dec 19 22:04:07 CET 2016
commit 8155ab7bd2b9e4e8048f7c52f47d0e242e3efbc1
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Aug 24 11:28:31 2012 +0300
sync autotag() from rpm-build-tools
make-request.sh | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/make-request.sh b/make-request.sh
index 4451ef0..0ea3352 100755
--- a/make-request.sh
+++ b/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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/cca6584b96e6c33d0732d559e43e100d804e2ecd
More information about the pld-cvs-commit
mailing list