From dd6b7ff96e66db41de9a1fab8eedfdab9d5e4210 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 13 Oct 2023 12:52:51 +0545 Subject: [PATCH] vcs-url: add gcc support --- .bin/vcs-url | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bin/vcs-url b/.bin/vcs-url index e743c9c..e729485 100755 --- a/.bin/vcs-url +++ b/.bin/vcs-url @@ -125,6 +125,10 @@ git_url() { repo=$(echo "${remote}" | sed -e 's,.*/,,' -e 's,[.]git$,,') url="https://sourceware.org/git/?p=${repo}.git;a=commit;h=" ;; + *://gcc.gnu.org/*) + repo=$(echo "${remote}" | sed -e 's,.*/,,' -e 's,[.]git$,,') + url="https://gcc.gnu.org/git/?p=${repo}.git;a=commit;h=" + ;; *.googlesource.com/*) url="${remote%.git}/+/" ;; -- 2.39.5