title: git clone stalls on "Initializing NSS with certpath"
body: <p>I am running a process in a docker container that periodically does a git clone via https from gitlab. Most of the time it works, but every so often it stalls indefinitely and requires me to manually destroy and recreate the docker container to fix. When I enable settings <code>GIT_TRACE=1</code> <code>GIT_CURL_VERBOSE=1</code> and <code>--verbose</code>, I can see in the logs:</p>
  
  <pre><code>trace: run_command: 'git-remote-https' 'origin' 'https://myusername:mypassword@gitlab.com/username/reponame.git'
  * Couldn't find host gitlab.com in the .netrc file; using defaults
  * About to connect() to gitlab.com port 443 (#0)
  *   Trying xx.xxx.xxx.xx...
  * Connected to gitlab.com (xx.xxx.xxx.xx) port 443 (#0)
  * Initializing NSS with certpath: sql:/etc/pki/nssdb
  *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  </code></pre>
  
  <p>I'm most confused about the inconsistent nature of this error. Per <a href="https://stackoverflow.com/questions/2949128/push-to-github-error-couldnt-find-host-github-com-in-the-netrc-file-using-de">this other thread</a> I tried to set <code>git config http.postBuffer 524288000</code> with no luck. How should I continue to troubleshoot? Thank you</p>