summaryrefslogtreecommitdiff
path: root/handleRepos.go
diff options
context:
space:
mode:
Diffstat (limited to 'handleRepos.go')
-rw-r--r--handleRepos.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/handleRepos.go b/handleRepos.go
index ac28c7f..5a1f07f 100644
--- a/handleRepos.go
+++ b/handleRepos.go
@@ -64,9 +64,14 @@ func addRequest(pb *gitpb.Repos, reqPB *httppb.HttpRequest) *gitpb.Repos {
func checkRequest(pb *gitpb.Repos, reqPB *httppb.HttpRequest) *gitpb.Repos {
checkPB := gitpb.NewRepos()
for repo := range pb.IterAll() {
- found := me.forge.PrepareCheckRepo(repo.Namespace)
+ // found := me.forge.PrepareCheckRepo(repo.Namespace)
+ found := me.forge.Repos.FindByNamespace(repo.Namespace)
if found == nil {
- // don't know about this
+ if me.missing == nil {
+ continue
+ }
+ // new missing repo
+ me.missing.AppendByNamespace(repo)
continue
}
if found.GetURL() != repo.GetURL() {
@@ -74,6 +79,7 @@ func checkRequest(pb *gitpb.Repos, reqPB *httppb.HttpRequest) *gitpb.Repos {
}
checkPB.Append(found)
}
+ saveMissing()
return checkPB
}