From: Mike Frysinger Date: Sat, 14 Jul 2018 18:07:02 +0000 (-0400) Subject: vcs-url: add nongnu/kernel sites X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b5612fc0178904da4c7696296cd03373e19e00a7;p=home.git vcs-url: add nongnu/kernel sites --- diff --git a/.bin/vcs-url b/.bin/vcs-url index bba45e2..94ff2a0 100755 --- a/.bin/vcs-url +++ b/.bin/vcs-url @@ -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}"