work on repos/
This commit is contained in:
parent
607886cc6a
commit
e1411dd1e9
3
Makefile
3
Makefile
|
@ -71,3 +71,6 @@ squash-the-last-3-commits-together:
|
|||
git rebase -i HEAD~3
|
||||
git fsck
|
||||
git prune
|
||||
|
||||
list:
|
||||
./forged list
|
||||
|
|
5
http.go
5
http.go
|
@ -89,12 +89,15 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
result := gitpb.NewRepos()
|
||||
switch route {
|
||||
case "/repos/check":
|
||||
result = addRequest(pb, reqPB)
|
||||
log.Infof("repos check result.Len()=%d pb.Len()=%d\n", result.Len(), pb.Len())
|
||||
case "/repos/pull":
|
||||
result = pullRequest(pb, reqPB)
|
||||
case "/repos/add":
|
||||
result = addRequest(pb, reqPB)
|
||||
default:
|
||||
result = pullRequest(pb, reqPB)
|
||||
log.Info("repos", route, "unknown")
|
||||
}
|
||||
if err := result.SendReply(w, reqPB); err != nil {
|
||||
log.Info("Oh well, Send to client failed. err =", err)
|
||||
|
|
Loading…
Reference in New Issue