From 4e0605a60189bb2a7ac428dd7e4607888d6e3012 Mon Sep 17 00:00:00 2001 From: ittacco Date: Sat, 14 Sep 2024 14:42:39 +0200 Subject: [PATCH] Update repository.go fix: Clone of Azure devops git repo not working with private repositories Refs: #2994 Signed-off-by: ittacco --- src/internal/git/repository.go | 2 ++ 1 file changed, 2 insertions(+) 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 } }