From 97f084d1aadd1ac31dac99c64dc916f767609596 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 5 Sep 2016 15:34:24 -0400 Subject: [PATCH] vcs-url: handle more sf.net urls --- .bin/vcs-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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$,,') -- 2.39.5