From a23d5466c647520e76004615b2a11e1030d61ce1 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 19 Apr 2016 02:51:02 -0400 Subject: [PATCH] vcs-url: more updates --- .bin/vcs-url | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.bin/vcs-url b/.bin/vcs-url index a86f8b7..bab6e78 100755 --- a/.bin/vcs-url +++ b/.bin/vcs-url @@ -83,9 +83,9 @@ git_url() { repo=$(echo "${remote}" | sed 's:.*git[.a-z]*.gentoo.org/::') url="https://gitweb.gentoo.org/${repo}/commit/?id=" ;; - git@github.com/*|\ + git@github.com[:/]*|\ *://github.com/*) - repo=$(echo "${remote}" | sed -e 's,^git@github.com/,,' -e 's,^https://github.com/,,' -e 's,^git://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/*) @@ -103,6 +103,10 @@ git_url() { *.googlesource.com/*) url="${remote%.git}/+/" ;; + *://git.enlightenment.org/*) + repo=$(echo "${remote}" | sed -e 's,^[^/]*//[^/]*/,,' -e 's,[.]git$,,') + url="https://git.enlightenment.org/${repo}.git/commit/?id=" + ;; *) echo "Unknown remote: ${remote}" exit 1 -- 2.39.2