Poll changes without workspace using git ls-remote

Slightly modified version of: https://github.com/jenkinsci/git-plugin/commit/c750b63ecd527a5721d9d8ee426bff97dd0e7a75

Original bug report: https://issues.jenkins-ci.org/browse/JENKINS-10131