only log about cloning if clone was actually run

This commit is contained in:
Andrew Cassidy 2025-10-19 00:10:51 -07:00
parent 1b6d6ed3d7
commit f81d8f567b
No known key found for this signature in database

View file

@ -280,9 +280,9 @@ func CloneIfRequired(ctx context.Context, refName plumbing.ReferenceName, input
if err = os.Chmod(input.Dir, 0o755); err != nil {
return nil, err
}
logger.Debugf("Cloned %s to %s", input.URL, input.Dir)
}
logger.Debugf("Cloned %s to %s", input.URL, input.Dir)
return r, nil
}