Skip to content

Commit

Permalink
git: Replace Stalling error for git implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
  • Loading branch information
Paulo Gomes committed Nov 11, 2022
1 parent 331fd64 commit bdcf708
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/gitrepository_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -768,8 +768,7 @@ func (r *GitRepositoryReconciler) gitCheckout(ctx context.Context,
err = fmt.Errorf("invalid Git implementation: %s", gitImplementation)
}
if err != nil {
// Do not return err as recovery without changes is impossible.
e := serror.NewStalling(
e := serror.NewGeneric(
fmt.Errorf("failed to create Git client for implementation '%s': %w", gitImplementation, err),
sourcev1.GitOperationFailedReason,
)
Expand Down

0 comments on commit bdcf708

Please sign in to comment.