From 3770dce609165d00e8e5b8d78c9be8671bcf0792 Mon Sep 17 00:00:00 2001 From: ittacco Date: Tue, 26 Nov 2024 18:42:15 +0100 Subject: [PATCH] fixed Clone function to return after gitCloneFallback Signed-off-by: ittacco --- 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.