From 225a775d7f9bab4eaaa8ccd699e302b195fa7eaa Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 28 Jan 2016 14:10:10 -0500 Subject: [PATCH] vcs-url: more updates --- .bin/vcs-url | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.bin/vcs-url b/.bin/vcs-url index 4090c77..8cc3680 100755 --- a/.bin/vcs-url +++ b/.bin/vcs-url @@ -50,7 +50,7 @@ _cvs_url() { [[ ${rev2} == "1.1" || ${rev1} == "${rev2}" ]] \ && urirev="?rev=${rev2}" \ || urirev="?r1=${rev1}&r2=${rev2}" - echo "http://sources.gentoo.org/${cvsroot}/${file}${urirev}" + echo "https://sources.gentoo.org/${cvsroot}/${file}${urirev}" } cvs_url() { local f @@ -75,7 +75,7 @@ git_url() { *://git@git.gentoo.org/*|\ *://anongit.gentoo.org/*) repo=$(echo "${remote}" | sed 's:.*git[.a-z]*.gentoo.org/::') - url="http://gitweb.gentoo.org/${repo}/commit/?id=" + url="https://gitweb.gentoo.org/${repo}/commit/?id=" ;; git@github.com/*|\ *://github.com/*) @@ -86,6 +86,10 @@ git_url() { repo=$(echo "${remote}" | sed -e 's,^git://git.sv.gnu.org/,,' -e 's:[.]git$::') url="http://git.savannah.gnu.org/cgit/${repo}.git/commit/?h=" ;; + git://git.code.sf.net/p/*) + repo=$(echo "${remote}" | sed -r -e 's,git://git.code.sf.net/p/([^/]*)/.*,\1,') + url="http://sourceforge.net/p/${repo}/code/ci/" + ;; *) echo "Unknown remote: ${remote}" exit 1 -- 2.39.2