]> git.wh0rd.org - home.git/blobdiff - .bin/vcs-url
vcs-url: more updates
[home.git] / .bin / vcs-url
index 8cc3680a20eed73d6bfe2f9c9a0a9f12b56ece71..0d83a33bc772ad640fcbd72db576eccff1a1c63c 100755 (executable)
@@ -70,7 +70,13 @@ git_url() {
        *://buildroot.org/*|*://git.buildroot.org/*|\
        *://buildroot.net/*|*://git.buildroot.net/*)
                repo=$(echo "${remote}" | sed -e 's,^[^:]*://[^/]*/,,' -e 's:[.]git$::')
-               url="https://git.${repo,,}.org/${repo}/commit/?id="
+               url="https://git."
+               case ${repo} in
+               uclibc)    url+="uclibc.org" ;;
+               buildroot) url+="buildroot.org" ;;
+               *)         url+="busybox.net" ;;
+               esac
+               url+="/${repo}/commit/?id="
                ;;
        *://git@git.gentoo.org/*|\
        *://anongit.gentoo.org/*)