title: Git installed through gitosys doesn't (probably) honor HOME environment variable when run from Cygwin
body: <p>I'm trying to use git from Cygwin, but here's what I see:</p>
  
  <pre><code>$ git clone ssh://git-repo/some/repository
  Cloning into 'repository'...
  ssh: git-repo-actual-host-name.com: no address associated with name
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  </code></pre>
  
  <p>The message is obviously false because:</p>
  
  <pre><code>$ echo "$HOME"
  /home/wvxvw
  $ cat $HOME/.ssh/config
  Host git-repo
   HostName git-repo-actual-host-name.com
   User wvxvw
   IdentityFile ~/.ssh/id_rsa
  $ ls $HOME/.ssh
  config  id_rsa  id_rsa.pub  known_hosts
  </code></pre>
  
  <p>Any ideas what is going wrong / how to help it?</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>Same info, but less "obfuscated":</p>
  
  <p><code>~/.ssh/config</code></p>
  
  <pre><code>Host tlv-git
   HostName tlv-git.host.com
   User WINDOMAIN\\wvxvw
   IdentityFile ~/.ssh/id_rsa
  
  $ ssh tlv-git
  ssh: Could not resolve hostname tlv-git: hostname nor servname provided, or not known
  
  $ ssh tlv-git.host.com
  Permission denied (publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive).
  </code></pre>
  
  <p>This is what happens if I then try to clone some repository:</p>
  
  <pre><code>$ git clone ssh://tlv-git/repo
  Permission denied (publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive).
  </code></pre>
  
  <p>But I have <code>ssh-agent</code> installed, so if I do:</p>
  
  <pre><code>$ eval $( ssh-agent )
  $ ssh-add
  $ git clone ssh://tlv-git/repo
  Permission denied (publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive).
  </code></pre>
  
  <p>But if I provide the user name, then it works...</p>
  
  <pre><code>$ git clone ssh://WINDOMAIN\\wvxvw@tlv-git/repo
  </code></pre>