From 0337362eec06e451b93700e6b4f64dc21f81ea19 Mon Sep 17 00:00:00 2001 From: Somtochi Onyekwere Date: Wed, 31 May 2023 10:17:02 +0100 Subject: [PATCH] return clone error Signed-off-by: Somtochi Onyekwere --- tests/azure/util_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/azure/util_test.go b/tests/azure/util_test.go index eb3ecb76..7c4f4083 100644 --- a/tests/azure/util_test.go +++ b/tests/azure/util_test.go @@ -318,6 +318,9 @@ func getRepository(repoURL, branchName string, overrideBranch bool, password str Branch: checkoutBranch, }, }) + if err != nil { + return nil, "", err + } err = c.SwitchBranch(context.Background(), branchName) if err != nil {