On Windows, especially, Windows 7, resolving localhost takes extremely much time. It's Windows thing. That and some strangeness leads to occasional errors like below:
C:\tmp>git clone http://localhost/ wsgigit
Initialized empty Git repository in /cygdrive/c/tmp/wsgigit/.git/
error: Failed connect to localhost:80; Connection refused while accessing http://localhost//info/refs
Change the url from "localhost" to the local IP - "127.0.0.1" and all shell be well.
On Windows, especially, Windows 7, resolving localhost takes extremely much time. It's Windows thing. That and some strangeness leads to occasional errors like below:
C:\tmp>git clone http://localhost/ wsgigit Initialized empty Git repository in /cygdrive/c/tmp/wsgigit/.git/ error: Failed connect to localhost:80; Connection refused while accessing http://localhost//info/refs
Change the url from "localhost" to the local IP - "127.0.0.1" and all shell be well.