;;
git@github.com/*|\
*://github.com/*)
- repo=$(echo "${remote}" | sed -e 's,^git@github.com/,,' -e 's,^https://github.com/,,' -e 's:[.]git$::')
+ repo=$(echo "${remote}" | sed -e 's,^git@github.com/,,' -e 's,^https://github.com/,,' -e 's,^git://github.com/,,' -e 's:[.]git$::')
url="https://github.com/${repo}/commit/"
;;
git://git.sv.gnu.org/*)
repo=$(echo "${remote}" | sed -r -e 's,git://git.code.sf.net/p/([^/]*)/.*,\1,')
url="http://sourceforge.net/p/${repo}/code/ci/"
;;
+ *://sourceware.org/*)
+ repo=$(echo "${remote}" | sed -e 's,.*/,,' -e 's,[.]git$,,')
+ url="https://sourceware.org/git/?p=${repo}.git;a=commit;h="
+ ;;
+ *.googlesource.com/*)
+ url="${remote%.git}/+/"
+ ;;
*)
echo "Unknown remote: ${remote}"
exit 1