From 716f44242c1464f55818a2468ecf9b89fbbd62ab Mon Sep 17 00:00:00 2001 From: ittacco Date: Tue, 26 Nov 2024 18:34:16 +0100 Subject: [PATCH] fixed Clone function to return after gitCloneFallback --- src/internal/git/repository.go | 1 + 1 file changed, 1 insertion(+) 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.