]> git.wh0rd.org Git - home.git/commitdiff
vcs-url: add nongnu/kernel sites
authorMike Frysinger <vapier@gentoo.org>
Sat, 14 Jul 2018 18:07:02 +0000 (14:07 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 14 Jul 2018 18:07:02 +0000 (14:07 -0400)
.bin/vcs-url

index bba45e2839a98bb15c509be20bfbcc9eccffdc70..94ff2a03d7245cadb1042d7df40c87b2c099e738 100755 (executable)
@@ -97,6 +97,10 @@ git_url() {
                repo=$(echo "${remote}" | sed -r -e 's,^git://git.(sv|savannah).gnu.org/,,' -e 's:[.]git$::')
                url="http://git.savannah.gnu.org/cgit/${repo}.git/commit/?h="
                ;;
+       git://git.sv.nongnu.org/*|git://git.savannah.nongnu.org/*)
+               repo=$(echo "${remote}" | sed -r -e 's,^git://git.(sv|savannah).nongnu.org/,,' -e 's:[.]git$::')
+               url="http://git.savannah.nongnu.org/cgit/${repo}.git/commit/?h="
+               ;;
        git://git.code.sf.net/p/*|ssh://*@git.code.sf.net/p/*)
                repo=$(echo "${remote}" | sed -r -e 's,(git://|ssh://([^@]*@)?)git.code.sf.net/p/([^/]*)/.*,\3,')
                url="https://sourceforge.net/p/${repo}/code/ci/"
@@ -114,7 +118,11 @@ git_url() {
                ;;
        *://git.qemu.org/*)
                repo=$(echo "${remote}" | sed -e 's,^[^/]*//[^/]*/,,' -e 's,[.]git$,,')
-               url="http://git.qemu.org/?p=${repo}.git;a=commit;h="
+               url="https://git.qemu.org/?p=${repo}.git;a=commit;h="
+               ;;
+       *://git.kernel.org/*)
+               repo=$(echo "${remote}" | sed -e 's,^[^/]*//[^/]*/,,' -e 's,[.]git$,,')
+               url="https://git.kernel.org/${repo}.git/commit/?id="
                ;;
        *)
                echo "Unknown remote: ${remote}"