1
0
mirror of synced 2026-02-06 10:55:56 +00:00

return clone error

Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
Somtochi Onyekwere
2023-05-31 10:17:02 +01:00
committed by Hidde Beydals
parent fb3013cb95
commit 0337362eec

View File

@@ -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 {