Created a unit test that reproduces JENKINS-23179
[FIXED JENKINS-23179] git pre-merge fails with matrix project