From: Mike Frysinger Date: Fri, 25 Dec 2015 01:22:56 +0000 (-0500) Subject: vcs-url: handle savannah projects X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ed2392be6161974ea643d50aef8e99eb04b8723b;p=home.git vcs-url: handle savannah projects --- diff --git a/.bin/vcs-url b/.bin/vcs-url index 0bbbcf5..4090c77 100755 --- a/.bin/vcs-url +++ b/.bin/vcs-url @@ -82,6 +82,10 @@ git_url() { repo=$(echo "${remote}" | sed -e 's,^git@github.com/,,' -e 's,^https://github.com/,,' -e 's:[.]git$::') url="https://github.com/${repo}/commit/" ;; + git://git.sv.gnu.org/*) + 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=" + ;; *) echo "Unknown remote: ${remote}" exit 1