[[ ${rev2} == "1.1" || ${rev1} == "${rev2}" ]] \
&& urirev="?rev=${rev2}" \
|| urirev="?r1=${rev1}&r2=${rev2}"
- echo "http://sources.gentoo.org/${cvsroot}/${file}${urirev}"
+ echo "https://sources.gentoo.org/${cvsroot}/${file}${urirev}"
}
cvs_url() {
local f
*://git@git.gentoo.org/*|\
*://anongit.gentoo.org/*)
repo=$(echo "${remote}" | sed 's:.*git[.a-z]*.gentoo.org/::')
- url="http://gitweb.gentoo.org/${repo}/commit/?id="
+ url="https://gitweb.gentoo.org/${repo}/commit/?id="
;;
git@github.com/*|\
*://github.com/*)
repo=$(echo "${remote}" | sed -e 's,^git://git.sv.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/"
+ ;;
*)
echo "Unknown remote: ${remote}"
exit 1