Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-10 10:38:29 +0200
committerErich Eckner <git@eckner.net>2019-09-10 10:38:29 +0200
commit114282aea1e14cb502c0be95d8bd7ef8c5c7bbd3 (patch)
tree61e40074c62d0012b253679b3699110656c2082d /bin
parent6fbaaeb0030dd304c9902bc1be533de2d44d001d (diff)
bin/change-git-remotes: consider git protocol if current url uses it
Diffstat (limited to 'bin')
-rwxr-xr-xbin/change-git-remotes6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/change-git-remotes b/bin/change-git-remotes
index e8ae5eb..34aa03c 100755
--- a/bin/change-git-remotes
+++ b/bin/change-git-remotes
@@ -55,12 +55,18 @@ fi
case "${git_name}" in
'archlinux32')
new_urls=$(
+ if [ -z "${url##git*}" ]; then
+ printf 'git@git.archlinux32.org:archlinux32/packages.git\n'
+ fi
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 'https://git%s.archlinux32.org/archlinux32/builder\n' \
'' 2 3 4
)