]> git.wh0rd.org Git - home.git/commitdiff
vcs-url: more updates
authorMike Frysinger <vapier@gentoo.org>
Mon, 1 Feb 2016 21:14:48 +0000 (16:14 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 1 Feb 2016 21:14:48 +0000 (16:14 -0500)
.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/*)