git: Replace Stalling error for git implementation
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
This commit is contained in:
parent
331fd64952
commit
bdcf708ef8
|
@ -768,8 +768,7 @@ func (r *GitRepositoryReconciler) gitCheckout(ctx context.Context,
|
||||||
err = fmt.Errorf("invalid Git implementation: %s", gitImplementation)
|
err = fmt.Errorf("invalid Git implementation: %s", gitImplementation)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// Do not return err as recovery without changes is impossible.
|
e := serror.NewGeneric(
|
||||||
e := serror.NewStalling(
|
|
||||||
fmt.Errorf("failed to create Git client for implementation '%s': %w", gitImplementation, err),
|
fmt.Errorf("failed to create Git client for implementation '%s': %w", gitImplementation, err),
|
||||||
sourcev1.GitOperationFailedReason,
|
sourcev1.GitOperationFailedReason,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue