summaryrefslogtreecommitdiff
path: root/bin/change-git-remotes
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-12 09:14:31 +0200
committerErich Eckner <git@eckner.net>2019-09-12 09:14:31 +0200
commit1551e4dd0ace625e50b840573340c1540b0f7fbf (patch)
tree6cc817ee41b2d4594c7ce5bb004e08498f6518ac /bin/change-git-remotes
parent114282aea1e14cb502c0be95d8bd7ef8c5c7bbd3 (diff)
downloadbuilder-1551e4dd0ace625e50b840573340c1540b0f7fbf.tar.xz
bin/change-git-remotes: unconditionally try git before https
Diffstat (limited to 'bin/change-git-remotes')
-rwxr-xr-xbin/change-git-remotes8
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/change-git-remotes b/bin/change-git-remotes
index 34aa03c..7d39c58 100755
--- a/bin/change-git-remotes
+++ b/bin/change-git-remotes
@@ -55,18 +55,14 @@ fi
case "${git_name}" in
'archlinux32')
new_urls=$(
- if [ -z "${url##git*}" ]; then
- printf 'git@git.archlinux32.org:archlinux32/packages.git\n'
- fi
+ printf 'git@git.archlinux32.org:archlinux32/packages.git\n'
printf 'https://git%s.archlinux32.org/archlinux32/packages\n' \
'' 2 3 4
)
;;
'builder')
new_urls=$(
- if [ -z "${url##git*}" ]; then
- printf 'git@git.archlinux32.org:archlinux32/builder.git\n'
- fi
+ printf 'git@git.archlinux32.org:archlinux32/builder.git\n'
printf 'https://git%s.archlinux32.org/archlinux32/builder\n' \
'' 2 3 4
)