return clone error

Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
pull/3940/head
Somtochi Onyekwere 2 years ago committed by Hidde Beydals
parent fb3013cb95
commit 0337362eec

@ -318,6 +318,9 @@ func getRepository(repoURL, branchName string, overrideBranch bool, password str
Branch: checkoutBranch, Branch: checkoutBranch,
}, },
}) })
if err != nil {
return nil, "", err
}
err = c.SwitchBranch(context.Background(), branchName) err = c.SwitchBranch(context.Background(), branchName)
if err != nil { if err != nil {

Loading…
Cancel
Save