title: Jenkins pipeline script from SCM: git checkout ERROR: Unable to retrieve commit message
body: <p>I created a Jenkinsfile and put it on Git repo.
  I have Linux VM that has this pipeline that config with a script from SCM and working find.
  I created a Windows VM with Jenkins also and create the same pipeline again with the same configuration (with light checkout) and got a plugin error.
  After unmark the light checkout the git finds the repo but on the git checkout -f part error throw.</p>
  <p>Error: <code>ERROR: Unable to retrieve commit message</code></p>
  <p>after the error the git try to run git rev-list --no-walk on the directory path of the job (C:/..//.Jenkinsfile) and get the error not found(I checked and the file exist ).</p>