git tries to stat //HEAD when searching for a repo, leading to huge delays on Cygwin
问题 I have a fancy shell prompt that executes git rev-parse --is-inside-work-tree to determine whether we're currently inside a working directory. This causes git to walk up the directory hierarchy looking for a containing git repo. For example, when invoked from my home directory, it stats the following paths, in order: /home/me/.git /home/me/.git/HEAD /home/me/HEAD /home /home/.git /home/.git/HEAD /home/HEAD / /.git /.git/HEAD //HEAD The last name ( //HEAD ) interacts badly with Cygwin, which