give user the permission to push to his fork :)
+8
knotserver/routes.go
+8
knotserver/routes.go
···
617
return
618
}
619
620
+
// add perms for this user to access the repo
621
+
err = h.e.AddRepo(did, ThisServer, relativeRepoPath)
622
+
if err != nil {
623
+
l.Error("adding repo permissions", "error", err.Error())
624
+
writeError(w, err.Error(), http.StatusInternalServerError)
625
+
return
626
+
}
627
+
628
w.WriteHeader(http.StatusNoContent)
629
}
630