From e5a368043cddaee9521b51736c893d30bec258fe Mon Sep 17 00:00:00 2001 From: Cosmos Admin Date: Fri, 30 Oct 2026 00:39:39 +0530 Subject: [PATCH] fix(orbit): map cosmos.linuxguy.space git clone URLs to local Gitea port --- orbitcontroller.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/orbitcontroller.go b/orbitcontroller.go index 17b5f5a..504053d 100644 --- a/orbitcontroller.go +++ b/orbitcontroller.go @@ -367,6 +367,10 @@ func normalizeGitURL(rawURL string) string { if strings.Contains(u, "127.0.0.1:3000/source/") { u = strings.Replace(u, "127.0.0.1:3000/source/", "127.0.0.1:3000/", 1) } + if strings.Contains(u, "cosmos.linuxguy.space/source/") { + u = strings.Replace(u, "https://cosmos.linuxguy.space/source/", "http://127.0.0.1:3000/", 1) + u = strings.Replace(u, "http://cosmos.linuxguy.space/source/", "http://127.0.0.1:3000/", 1) + } if strings.Contains(u, "vshno.linuxguy.space/source/") { u = strings.Replace(u, "https://vshno.linuxguy.space/source/", "http://127.0.0.1:3000/", 1) u = strings.Replace(u, "http://vshno.linuxguy.space/source/", "http://127.0.0.1:3000/", 1)