title: git aliases causing "Permission denied" error
body: <p>The following commands</p>
  
  <pre><code>$ git co -b newbranch
  $ git co oldbranch
  </code></pre>
  
  <p>result in "fatal: cannot exec 'git-co': Permission denied" error.</p>
  
  <p>In the same time,</p>
  
  <pre><code>$ git checkout -b newbranch
  $ git checkout oldbranch
  </code></pre>
  
  <p>and</p>
  
  <pre><code>$ sudo git co -b newbranch
  $ sudo git co oldbranch
  </code></pre>
  
  <p>work as expected. Ownership rights for the .git folder are set for the user owning the home folder and 0755/0644 are the mode for .git folder/subfolder/files. There are no <code>git-co</code> script anywhere in the system (that is an expandable alias to <code>git-checkout</code>, which resides in /usr/libexec/git-core` dir).</p>
  
  <p>Aliases are defined in <code>.gitconfig</code> of the home folder:</p>
  
  <pre><code>[alias]
  co = checkout
  </code></pre>
  
  <p>There is no difference in <code>git config -l</code> output for root or unprivileged user. Still <code>sudo git co oldbranch</code> works and <code>git co oldbranch</code> does not.</p>
  
  <p>What am I missing?</p>
  
  <p>Gentoo / kernel 3.0.6 / git 1.7.3.4</p>