title: Not able to clone big repositories using JGIT getting packfile truncated error
body: <p>I am trying to clone a big repository from git using JGIT library. The size of file is around 70MB. But am getting Transport Exception: Packfile got truncated. But the same code when i tried to clone a 3MB repo it was working fine. 
  My code snippet is below. Since i tried all the possibilites, posting here for some help on what we are missing</p>
  
  <ol>
  <li>Git.cloneRepository()</li>
  <li><p>Git.open()</p>
  
  <p>Git git = Git.cloneRepository()
                  .setURI("any repo of size 70MB. since it's company git url am not giving here")
                  .setDirectory(new File(" C drive location "))
                  .setNoCheckout(false)
                  .setCredentialsProvider(new UsernamePasswordCredentialsProvider("username", "password"))
                  .call();</p></li>
  </ol>
  
  <p>It should clone the repo in the specified directory with proper .git folder in which heads and origin should be updated with the snapshot of the branch/master we are cloning. But The error stack trace am getting is</p>
  
  <pre><code>Caused by: org.eclipse.jgit.errors.TransportException: Packfile is truncated.
      at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:400)
      at org.eclipse.jgit.transport.TransportHttp$SmartHttpFetchConnection.doFetch(TransportHttp.java:1084)
      at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(BasePackFetchConnection.java:323)
      at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(BasePackFetchConnection.java:314)
      at org.eclipse.jgit.transport.FetchProcess.fetchObj`ects(FetchProcess.java:265)
      at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:163)
      at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:124)
      at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1271)
      at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:243)
      ... 62 more
  </code></pre>