From: Mike Frysinger Date: Mon, 5 Sep 2016 19:34:24 +0000 (-0400) Subject: vcs-url: handle more sf.net urls X-Git-Url: https://git.wh0rd.org/?p=home.git;a=commitdiff_plain;h=97f084d1aadd1ac31dac99c64dc916f767609596 vcs-url: handle more sf.net urls --- diff --git a/.bin/vcs-url b/.bin/vcs-url index 655717d..f2cd3c9 100755 --- a/.bin/vcs-url +++ b/.bin/vcs-url @@ -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$,,')