fixup deps
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
9cf36d0421
commit
156d969938
@ -287,6 +287,11 @@ func giteaPullRequest(ctx context.Context, cfg *Config, branch string, mods map[
|
|||||||
logger.Fatalf(ctx, "failed to reset repo branch: %v", err)
|
logger.Fatalf(ctx, "failed to reset repo branch: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err = wtree.PullContext(&git.PullOptions{Force:true, RemoteName: "origin"}); err != nil {
|
||||||
|
logger.Fatalf(ctx, "failed to pull repo: %v", err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
logger.Infof(ctx, "checkout ref %s", headRef)
|
logger.Infof(ctx, "checkout ref %s", headRef)
|
||||||
if err = wtree.Checkout(&git.CheckoutOptions{
|
if err = wtree.Checkout(&git.CheckoutOptions{
|
||||||
Hash: headRef.Hash(),
|
Hash: headRef.Hash(),
|
||||||
|
Loading…
Reference in New Issue
Block a user