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$,,')