diff options
author | Erich Eckner <git@eckner.net> | 2019-09-10 10:38:29 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-09-10 10:38:29 +0200 |
commit | 114282aea1e14cb502c0be95d8bd7ef8c5c7bbd3 (patch) | |
tree | 61e40074c62d0012b253679b3699110656c2082d /bin/change-git-remotes | |
parent | 6fbaaeb0030dd304c9902bc1be533de2d44d001d (diff) | |
download | builder-114282aea1e14cb502c0be95d8bd7ef8c5c7bbd3.tar.xz |
bin/change-git-remotes: consider git protocol if current url uses it
Diffstat (limited to 'bin/change-git-remotes')
-rwxr-xr-x | bin/change-git-remotes | 6 |
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 ) |