Release URBM 2026.06.15.r010

This commit is contained in:
Mikei386
2026-06-15 07:24:15 +02:00
parent 772358578e
commit 1e9487e6f2
9 changed files with 71 additions and 9 deletions
+11
View File
@@ -202,6 +202,17 @@ func (r *Runner) Stats(ctx context.Context, repo model.Repository, mode string)
if mode != "" {
args = append(args, "--mode", mode)
}
stats, err := r.stats(ctx, repo, args)
if err == nil || !isRepositoryLocked(err) {
return stats, err
}
if unlockErr := r.Unlock(ctx, repo); unlockErr != nil {
return Stats{}, fmt.Errorf("repository statistics locked; remove stale lock: %w", unlockErr)
}
return r.stats(ctx, repo, args)
}
func (r *Runner) stats(ctx context.Context, repo model.Repository, args []string) (Stats, error) {
var output []byte
if err := r.run(ctx, repo, args, nil, &output); err != nil {
return Stats{}, err