diff --git a/cmd/fix.go b/cmd/fix.go index e935464d..adf1ca29 100644 --- a/cmd/fix.go +++ b/cmd/fix.go @@ -323,7 +323,7 @@ func fix(args []string, params *fixCommandParams) error { return fmt.Errorf("failed to establish git repo: %w", err) } - if gitRepo == "" && !params.force { + if gitRepo == "" && !params.dryRun && !params.force { return errors.New("no git repo found to support undo, use --force to override") }