Improve command shutdown on context cancellation

This commit is contained in:
Michael Eischer
2024-04-22 22:31:38 +02:00
parent 910927670f
commit 31624aeffd
17 changed files with 80 additions and 6 deletions
+3
View File
@@ -197,6 +197,9 @@ func runPruneWithRepo(ctx context.Context, opts PruneOptions, gopts GlobalOption
if err != nil {
return err
}
if ctx.Err() != nil {
return ctx.Err()
}
if popts.DryRun {
printer.P("\nWould have made the following changes:")