Commit 7d0338dc authored by Douwe Maan's avatar Douwe Maan

Merge branch '5923-pass-old-base-one-commit-before' into 'master'

Resolve "ee-specific-lines-check should take the old base one commit before the one we want"

Closes #5923

See merge request gitlab-org/gitlab-ee!5610
parents 457d522e 275492c7
......@@ -98,7 +98,8 @@ module EESpecificCheck
# where ce_merge_base..ee_merge_base is the update-to-date
# CE/EE difference and ce_fetch_head..HEAD is the changes we made in
# CE and EE branches.
run_git_command("rebase --onto #{ce_merge_base} canonical-ce/master #{ce_fetch_head}")
old_base = run_git_command("merge-base canonical-ce/master #{ce_fetch_head}")
run_git_command("rebase --onto #{ce_merge_base} #{old_base}~1 #{ce_fetch_head}")
status = git_status
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment