I created a git bare repo on my linux CentOS server:
/home/git/niels.git.
User git and niels are in group git.
I changed /etc/passwd so home dir of niels is git.
ssh as git to niels.git : push and pull fine.
ssh as niels in the same manner gives:
fatal: '~/niels.git' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Clearly the repository exists as I can access it as git. Here some rights and group info:
# ls -al /home/git
total 32
drwxrwx--- 4 git git 4096 Sep 20 22:11 .
drwxr-xr-x 5 root root 4096 Sep 17 14:39 ..
-rwxr----- 1 git 10009 953 Sep 17 14:19 .bash_history
-rwxr----- 1 git 10009 33 Sep 12 22:46 .bash_logout
-rwxr----- 1 git 10009 176 Sep 12 22:46 .bash_profile
-rwxr----- 1 git git 124 Sep 12 22:46 .bashrc
drwxrw---- 7 git git 4096 Sep 17 17:19 niels.git
drwxr----- 2 root 10009 4096 Sep 15 22:40 .ssh
# groups niels
niels : niels git
what am I doing wrong?
Oh BTW I tried all kinds of permission like
chmod -R 740 /home/git
and 766 666 but only with 777 I get the liberating:
Already up-to-date.
But that can't be the way...