]> git.wh0rd.org Git - home.git/commitdiff
vcs-url: handle more sf.net urls
authorMike Frysinger <vapier@gentoo.org>
Mon, 5 Sep 2016 19:34:24 +0000 (15:34 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 5 Sep 2016 19:37:05 +0000 (15:37 -0400)
.bin/vcs-url

index 655717defadef405d85f749c0b2aaed25d077204..f2cd3c9a3bd187eeeb8c2343cdcec7b6e8cf0fd5 100755 (executable)
@@ -92,9 +92,9 @@ 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.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/"
+       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/"
                ;;
        *://sourceware.org/*)
                repo=$(echo "${remote}" | sed -e 's,.*/,,' -e 's,[.]git$,,')