diff --git a/internal/commands/test.go b/internal/commands/test.go index 577671c..45af818 100644 --- a/internal/commands/test.go +++ b/internal/commands/test.go @@ -74,6 +74,8 @@ func TestCommand(ctx context.Context) (err error) { return fmt.Errorf("make a repo temp copy: %w", err) } + defer os.RemoveAll(tmpDir) + logger.Debug().Msgf("copied repository to temp directory: %s", tmpDir) tempBranchName := "cli-test-" + strconv.FormatInt(time.Now().UnixMilli(), 10)