Git hooks check old commits when merging
From https://gitlab.com/gitlab-org/gitlab-ee/issues/279#note_3746260
git config --local user.email "doe@example.com"
echo ${RANDOM} > README && git add README && git commit -m"Testing 1" README && git push
git checkout -b test-branch && git push -u origin test-branch
git config --local user.email "john.doe@example.com"
echo ${RANDOM} > README.tb && git add README.tb && git commit -m"Testing tb 1" README.tb && git push
git checkout master
git config --local user.email "jane.doe@example.com"
echo ${RANDOM} > README.m && git add README.m && git commit -m"Testing m 1" README.m && git push
git checkout test-branch
Now enable the member_check:
git config --local user.email "<Your valid member e-mail>"
git merge -m"Test merge" master
git push