Skip to content

Commit bdcf708

Browse files
author
Paulo Gomes
committed
git: Replace Stalling error for git implementation
Signed-off-by: Paulo Gomes <[email protected]>
1 parent 331fd64 commit bdcf708

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

controllers/gitrepository_controller.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -768,8 +768,7 @@ func (r *GitRepositoryReconciler) gitCheckout(ctx context.Context,
768768
err = fmt.Errorf("invalid Git implementation: %s", gitImplementation)
769769
}
770770
if err != nil {
771-
// Do not return err as recovery without changes is impossible.
772-
e := serror.NewStalling(
771+
e := serror.NewGeneric(
773772
fmt.Errorf("failed to create Git client for implementation '%s': %w", gitImplementation, err),
774773
sourcev1.GitOperationFailedReason,
775774
)

0 commit comments

Comments
 (0)