JENKINS-22009 Git Polling Keeps Detecting Changes When Variables in refspec (setup correct environment for polling + test case)
JENKINS-22009 Git Polling Keeps Detecting Changes When Variables in refspec (apply API changes in 2.2.x)
remove broken test
Merge pull request #250 from jakobk/2.2.x

fix JENKINS-22009 on 2.2.x branch