mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 00:37:27 +00:00
return clone error
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
parent
fb3013cb95
commit
0337362eec
1 changed files with 3 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue