surface git clone errors at v(0) (#5162)

This commit is contained in:
Jordan Tunstill
2026-08-05 13:08:39 -07:00
committed by GitHub
parent 70cac3625d
commit 95dd07d4a6
+1 -1
View File
@@ -665,7 +665,7 @@ func executeClone(ctx context.Context, params cloneParams) (*git.Repository, err
} else if cloneCmd.ProcessState == nil {
return nil, fmt.Errorf("clone command exited with no output")
} else if cloneCmd.ProcessState.ExitCode() != 0 {
logger.V(1).Info("git clone failed", "error", err)
logger.V(0).Info("git clone failed", "error", err)
failureReason := ClassifyCloneError(output)
exitCode := cloneCmd.ProcessState.ExitCode()
metricsInstance.RecordCloneOperation(statusFailure, failureReason, exitCode)