title: Jenkins Git Plugin stalls on 'git rev-list'
body: <p>Running Jenkins on a Windows Server 2012 slave, jobs are successfully fetching data from Git, served locally (inside firewall) by Bitbucket; its last task is to execute a "git rev-list" on the change it just checked out.  This command is taking about 8 minutes to complete.  This is repeatable; it is a relatively new environment and I don't have history to see if this is something that just started.</p>
  
  <p>In our production environment where Jenkins itself is running on Windows without a slave (for 2 years), this same rev-list command takes only 3 seconds to complete.</p>
  
  <p>I have seen several references to "git fetch hangs" but for me it is not the fetch that is hanging - given the size of the project it completes in a reasonable amount of time.</p>
  
  <p>Timestamped log is below.</p>
  
  <pre><code>00:00:00.001 Started by user #####
  00:00:00.002 Building remotely on JS-W-01 (msvs ishield win) in workspace c:\jenkins\workspace\MyProject\2.7.11_nightly@2
  00:00:00.015 [TemplateProject] Using SCM from: MyProject ï¿½ 2.7.11_Template
  00:00:00.044 Cloning the remote Git repository
  00:00:00.049 Cloning repository ssh://vdn-bitbucket:7999/myprojectcore.git
  00:00:00.052  &gt; git init c:\jenkins\workspace\MyProject\2.7.11_nightly@2 # timeout=10
  00:00:00.153 Fetching upstream changes from ssh://vdn-bitbucket:7999/myprojectcore.git
  00:00:00.154  &gt; git --version # timeout=10
  00:00:00.200 using GIT_SSH to set credentials Jenkins Builder vdnbuild-bb SSH access key
  00:00:00.210  &gt; git fetch --tags --progress ssh://vdn-bitbucket:7999/myprojectcore.git +refs/heads/*:refs/remotes/origin/*
  00:00:22.857  &gt; git config remote.origin.url ssh://vdn-bitbucket:7999/myprojectcore.git # timeout=10
  00:00:22.911  &gt; git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
  00:00:22.967  &gt; git config remote.origin.url ssh://vdn-bitbucket:7999/myprojectcore.git # timeout=10
  00:00:23.023 Fetching upstream changes from ssh://vdn-bitbucket:7999/myprojectcore.git
  00:00:23.023 using GIT_SSH to set credentials Jenkins Builder vdnbuild-bb SSH access key
  00:00:23.028  &gt; git fetch --tags --progress ssh://vdn-bitbucket:7999/myprojectcore.git +refs/heads/*:refs/remotes/origin/*
  00:00:23.641  &gt; git rev-parse "refs/remotes/origin/release/2.7.11^{commit}" # timeout=10
  00:00:23.697  &gt; git rev-parse "refs/remotes/origin/origin/release/2.7.11^{commit}" # timeout=10
  00:00:23.748 Checking out Revision fb773fc64875f5d457bc255088fcec4df3028216 (refs/remotes/origin/release/2.7.11)
  00:00:23.752  &gt; git config core.sparsecheckout # timeout=10
  00:00:23.799  &gt; git checkout -f fb773fc64875f5d457bc255088fcec4df3028216
  00:02:21.725 Commit message: "Merge pull request #30 in MYPROJECT/core from bugfix/MYPROJECT-19 to release/2.7.11"
  00:02:21.730  &gt; git rev-list fb773fc64875f5d457bc255088fcec4df3028216 # timeout=10
  00:10:50.813 [TemplateProject] Starting builders from: MyProject ï¿½ 2.7.11_Template
  00:10:50.827 [2.7.11_nightly@2] $ cmd /c call C:\Windows\TEMP\jenkins7743297501210902154.bat
  00:10:50.853 
  </code></pre>
  
  <p>Execution environment:</p>
  
  <ul>
  <li><p>Jenkins 2.86 running on Centos 7; Git Plugin 3.6.2 (happened with
  3.6.0 as well)</p></li>
  <li><p>Slave running slave.jar 3.7 on Windows Server 2012 R2 Standard.</p></li>
  <li><p>Git version is 2.14.3 (happened with  2.10.0 as well)</p></li>
  </ul>