From b5612fc0178904da4c7696296cd03373e19e00a7 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 14 Jul 2018 14:07:02 -0400 Subject: [PATCH] vcs-url: add nongnu/kernel sites --- .bin/vcs-url | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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}" -- 2.39.2