The following commands
$ git co -b newbranch
$ git co oldbranch
result in "fatal: cannot exec 'git-co': Permission denied" error.
In the same time,
$ git checkout -b newbranch
$ git checkout oldbranch
and
$ sudo git co -b newbranch
$ sudo git co oldbranch
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.
Aliases are defined in .gitconfig
of the home folder:
[alias]
co = checkout
There is no difference in git config -l
output for root or unprivileged user.
What am I missing?
Gentoo 3.0.6 / git 1.7.3.4