Skip to content

Commit

Permalink
Fix issue with coqbot not pushing merge commits anymore.
Browse files Browse the repository at this point in the history
Fixes #294.
Bug introduced in 16cc99c.
  • Loading branch information
Zimmi48 committed Oct 9, 2023
1 parent 61f5d94 commit b8e9db5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/actions.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2302,13 +2302,13 @@ let update_pr ?full_ci ?(skip_author_check = false) ~bot_info
let open Lwt_result.Infix in
(* Try as much as possible to get unique refnames for local branches. *)
let local_head_branch =
f "refs/heads/head-%s-%s" pr_info.head.branch.name pr_info.head.sha
f "head-%s-%s" pr_info.head.branch.name pr_info.head.sha
in
let local_base_branch =
f "refs/heads/base-%s-%s" pr_info.base.branch.name pr_info.base.sha
f "base-%s-%s" pr_info.base.branch.name pr_info.base.sha
in
git_fetch pr_info.base.branch local_base_branch
|&& git_fetch pr_info.head.branch local_head_branch
git_fetch pr_info.base.branch ("refs/heads/" ^ local_base_branch)
|&& git_fetch pr_info.head.branch ("refs/heads/" ^ local_head_branch)
|> execute_cmd
>>= (fun () ->
git_make_ancestor ~pr_title:pr_info.issue.title
Expand Down

0 comments on commit b8e9db5

Please sign in to comment.