diff --git a/src/internal/git/repository.go b/src/internal/git/repository.go index 9d2b2d4918..9b54d38d7a 100644 --- a/src/internal/git/repository.go +++ b/src/internal/git/repository.go @@ -100,6 +100,7 @@ func Clone(ctx context.Context, rootPath, address string, shallow bool) (*Reposi if err != nil { return nil, err } + return r, nil } // If we're cloning the whole repo, we need to also fetch the other branches besides the default.