From ed2392be6161974ea643d50aef8e99eb04b8723b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 24 Dec 2015 20:22:56 -0500 Subject: [PATCH] vcs-url: handle savannah projects --- .bin/vcs-url | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.2