title: Go get from private git repository fails due to .git in url
body: <p>When using github.com, the url used to browse to a repo does not contain the .git extension:</p>
  
  <ul>
  <li><a href="https://github.com/someuser/helloworld" rel="nofollow noreferrer">https://github.com/someuser/helloworld</a></li>
  </ul>
  
  <p>but the "clone with https" url does:</p>
  
  <ul>
  <li><a href="https://github.com/someuser/helloworld.git" rel="nofollow noreferrer">https://github.com/someuser/helloworld.git</a></li>
  </ul>
  
  <p>And you go get it like this:</p>
  
  <p><code>go get github.com/someuser/helloworld</code></p>
  
  <p>In our private git repo, we create bare repos in a directory ending in .git (based on convention):</p>
  
  <ul>
  <li>helloworld.git</li>
  </ul>
  
  <p>But the url (served using <a href="https://github.com/klaussilveira/gitlist" rel="nofollow noreferrer">https://github.com/klaussilveira/gitlist</a>) to browse to the repo also contains .git:</p>
  
  <ul>
  <li><a href="https://git.test.net/helloworld.git" rel="nofollow noreferrer">https://git.test.net/helloworld.git</a></li>
  </ul>
  
  <p>This causes go get to fail because it doesn't expect the .git:</p>
  
  <pre><code>C:\&gt;go get -u -f -insecure git.test.net/helloworld.git
  # cd .; git clone git.test.net/helloworld   C:\Temp\golang\src\git.test.net\helloworld.git
  fatal: repository 'git.test.net/helloworld' does not exist
  package git.test.net/helloworld.git: exit status 128
  </code></pre>
  
  <p>Leaving off the .git part also fails:</p>
  
  <pre><code>C:\&gt;go get -u -f -insecure git.test.net/helloworld
      package git.test.net/helloworld: unrecognized import path "git.test.net/helloworld" (parse https://git.test.net/helloworld?go-get=1: no go-impor
      t meta tags ())
  </code></pre>
  
  <p>Renaming the bare repo to just helloworld solves the problem. But this isn't the convention. </p>
  
  <p>What am I missing? Is there a server setting we are missing so that we can leave off the .git extension when browsing? Should we just just leave off .git when naming the bare repo? Why does github.com have different behavior?</p>