diff --git a/src/internal/git/repository.go b/src/internal/git/repository.go index 9d2b2d4918..295d83df3a 100644 --- a/src/internal/git/repository.go +++ b/src/internal/git/repository.go @@ -99,6 +99,8 @@ func Clone(ctx context.Context, rootPath, address string, shallow bool) (*Reposi err := r.gitCloneFallback(ctx, gitURLNoRef, ref, shallow) if err != nil { return nil, err + } else { + return r, nil } }