summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.go b/main.go
index 790a374..cc3d81b 100644
--- a/main.go
+++ b/main.go
@@ -80,6 +80,13 @@ func setStats(repo *gitpb.Repo) error {
}
}
repo.UserStat = ref
+ if repo.Tags.Len() != stats.Len() {
+ log.Printf("tags Tags.len(%d) vs stats.Len(%d)\n", repo.Tags.Len(), stats.Len())
+ repo.Tags = stats
+ err = errors.New("adding stats to repo.Tags")
+ } else {
+ // log.Printf("tags already here with len(%d)\n", repo.Tags.Len())
+ }
return err
}