git: Replace Stalling error for git implementation

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
This commit is contained in:
Paulo Gomes 2022-11-11 10:10:50 +00:00
parent 331fd64952
commit bdcf708ef8
No known key found for this signature in database
GPG Key ID: 9995233870E99BEE
1 changed files with 1 additions and 2 deletions

View File

@ -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,
)