forked from tangled.org/core
Monorepo for Tangled — https://tangled.org

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
···
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")