From 41b461fe1b615a463103cffdb3a0c8ac738b885c Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sun, 17 Aug 2025 09:07:06 +0300 Subject: [PATCH] knotserver: special-case tangled.sh host in push rejection msg Signed-off-by: Anirudh Oppiliappan --- knotserver/git.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/knotserver/git.go b/knotserver/git.go index e8b7c2da..cd75771d 100644 --- a/knotserver/git.go +++ b/knotserver/git.go @@ -135,6 +135,10 @@ func (d *Handle) RejectPush(w http.ResponseWriter, r *http.Request, unqualifiedR hostname = strings.Split(hostname, ":")[0] } + if hostname == "knot1.tangled.sh" { + hostname = "tangled.sh" + } + fmt.Fprintf(w, " Try:\ngit remote set-url --push origin git@%s:%s/%s\n\n... and push again.", hostname, ownerHandle, unqualifiedRepoName) } fmt.Fprintf(w, "\n\n") -- 2.51.2