diff options
Diffstat (limited to 'rill.go')
| -rw-r--r-- | rill.go | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -164,19 +164,17 @@ func (f *Forge) RillRepos(rillf func(*gitpb.Repo) error) map[string]*RillStats { func (f *Forge) RunOnReposNew(repos *gitpb.Repos, rillf func(*gitpb.Repo) error) *gitpb.Repos { stats := f.RunOnRepos(repos, rillf) failed := gitpb.NewRepos() - counter := 1 for s, stat := range stats { if stat.Err == nil { continue } - counter += 1 found := f.Repos.FindByFullPath(s) if found == nil { log.Info("found", found, "'"+s+"'") panic("wrong namespace logic. couldn't find repo from stats") } newr := failed.Clone(found) - newr.State = fmt.Sprintf("%v (%d)", stat.Err, counter) + newr.State = fmt.Sprintf("%v", stat.Err) } return failed @@ -195,7 +193,7 @@ func (f *Forge) RunOnReposNewDumb(repos *gitpb.Repos, rillf func(*gitpb.Repo) er continue } newr := failed.Clone(repo) - newr.State = fmt.Sprintf("%v (%d)", err, counter) + newr.State = fmt.Sprintf("%v) (%d)", err, counter) counter += 1 } |
