+1
knotserver/git.go
+1
knotserver/git.go
···
129
// If the appview gave us the repository owner's handle we can attempt to
130
// construct the correct ssh url.
131
ownerHandle := r.Header.Get("x-tangled-repo-owner-handle")
132
if ownerHandle != "" && !strings.ContainsAny(ownerHandle, ":") {
133
hostname := d.c.Server.Hostname
134
if strings.Contains(hostname, ":") {
···
129
// If the appview gave us the repository owner's handle we can attempt to
130
// construct the correct ssh url.
131
ownerHandle := r.Header.Get("x-tangled-repo-owner-handle")
132
+
ownerHandle = strings.TrimPrefix(ownerHandle, "@")
133
if ownerHandle != "" && !strings.ContainsAny(ownerHandle, ":") {
134
hostname := d.c.Server.Hostname
135
if strings.Contains(hostname, ":") {