echo " -b --builder VALUE"
echo " choose a particular builder, default all"
echo " -p --priority VALUE (default: 2)"
- echo " -s --skip-pull (default: no)"
- echo " skip git pull when getting autotag"
+ echo " -s --skip-fetch-tags (default: no)"
+ echo " skip git fetch --tags when getting autotag"
echo " -h --help"
echo " show this help"
echo ""
SENDPRIO=
BUILDER=
PRIO=2
-SKIPPULL=0
+SKIPFETCHTAGS=0
#SPECDIR=$(rpm -E %_specdir)
SPECDIR=~/rpm
shift
;;
- --skip-pull | -s )
- SKIPPULL=1
+ --skip-fetch-tags | -s )
+ SKIPFETCHTAGS=1
;;
--help | -h )
if [ ! -d $PKG ]; then
git clone git@git.tld-linux.org:packages/${PKG}
fi
- if [ $SKIPPULL -lt 1 ]; then
- LAST_AUTOTAG=$(cd $PKG && git pull >/dev/null && git tag |tail -n 1)
+ if [ $SKIPFETCHTAGS -lt 1 ]; then
+ LAST_AUTOTAG=$(cd $PKG && git fetch --tags >/dev/null && git tag |tail -n 1)
else
LAST_AUTOTAG=$(cd $PKG && git tag |tail -n 1)
fi