From 108c3e8173fc03908e13c562ab5993ed61298f78 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 29 Nov 2023 16:53:36 -0500 Subject: [PATCH] vcs-url: add support for rpc:// --- .bin/vcs-url | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bin/vcs-url b/.bin/vcs-url index e729485..8eaff27 100755 --- a/.bin/vcs-url +++ b/.bin/vcs-url @@ -129,6 +129,10 @@ git_url() { repo=$(echo "${remote}" | sed -e 's,.*/,,' -e 's,[.]git$,,') url="https://gcc.gnu.org/git/?p=${repo}.git;a=commit;h=" ;; + rpc://*) + url="${remote#rpc://}" + url="https://${url/\//.googlesource.com/}/+/" + ;; *.googlesource.com/*) url="${remote%.git}/+/" ;; -- 2.39.5