]> git.wh0rd.org Git - home.git/commitdiff
vcs-url: more updates
authorMike Frysinger <vapier@gentoo.org>
Thu, 28 Jan 2016 19:10:10 +0000 (14:10 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 28 Jan 2016 19:10:10 +0000 (14:10 -0500)
.bin/vcs-url

index 4090c7708c24a9f02af13960fa84f44d302940c7..8cc3680a20eed73d6bfe2f9c9a0a9f12b56ece71 100755 (executable)
@@ -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