Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/load-configuration15
1 files changed, 10 insertions, 5 deletions
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