archco: convert tool to git clone

This commit is contained in:
Levente Polyak 2022-09-09 20:35:11 +02:00
parent bb72473529
commit 6675894159
No known key found for this signature in database
GPG Key ID: FC1B547C8D8172C8
1 changed files with 4 additions and 6 deletions

View File

@ -13,14 +13,12 @@ fi
case $scriptname in
archco)
SVNURL="svn+ssh://svn-packages@repos.archlinux.org/srv/repos/svn-packages/svn";;
communityco)
SVNURL="svn+ssh://svn-community@repos.archlinux.org/srv/repos/svn-community/svn";;
GITURL="ssh://git@gitlab.archlinux.org:222/bot-test/packages";;
*)
die "Couldn't find svn url for %s" "$scriptname"
die "Couldn't find Git url for %s" "$scriptname"
;;
esac
for i in "$@"; do
svn co "$SVNURL/$i"
for pkgbase in "$@"; do
git clone --origin origin --config commit.gpgsign=true "${GITURL}/${pkgbase}.git"
done