forked from tangled.org/core
Monorepo for Tangled

knotserver: special-case tangled.sh host in push rejection msg

Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>

anirudh.fi 41b461fe 1f681c12

verified
Changed files
+4
knotserver
+4
knotserver/git.go
··· 135 135 hostname = strings.Split(hostname, ":")[0] 136 136 } 137 137 138 + if hostname == "knot1.tangled.sh" { 139 + hostname = "tangled.sh" 140 + } 141 + 138 142 fmt.Fprintf(w, " Try:\ngit remote set-url --push origin git@%s:%s/%s\n\n... and push again.", hostname, ownerHandle, unqualifiedRepoName) 139 143 } 140 144 fmt.Fprintf(w, "\n\n")