From 76143817202a2c641dc573225f908f4f1710e075 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 8 Jul 2018 12:56:52 +0200 Subject: lib/load-configuration: clone correct repository --- lib/load-configuration | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/load-configuration b/lib/load-configuration index 8c893fc..ef2bf8a 100755 --- a/lib/load-configuration +++ b/lib/load-configuration @@ -144,11 +144,16 @@ for repo in ${repo_names} 'releng'; do mkdir -p "${repo_path%/*}" if ! git -C "${repo_path}" rev-parse --git-dir > /dev/null 2>&1; then - if [ "${repo}" = "archlinux32" ]; then - repo_source='https://git.archlinux32.org/archlinux32/packages.git' - else - repo_source="git://git.archlinux.org/svntogit/${repo}.git" - fi + case "${repo}" in + 'archlinux32') + repo_source='https://git.archlinux32.org/archlinux32/packages.git' + ;; + 'releng') + repo_source='git://git.archlinux32.org:archlinux32/releng.git' + *) + repo_source="git://git.archlinux.org/svntogit/${repo}.git" + ;; + esac git clone --mirror "${repo_source}" "${repo_path}" fi -- cgit v1.2.3-70-g09d2