i suffered a very bad problem. i want push local repository to remote repository from my client and then excute post-receive script copy to webroot.there is a piece of code in my post-receive as follows:
cd /home/james/mywebsite
git init
git pull ssh://git@git.xxx.com/repository/xxx.git
cp ./* /usr/local/apache2/htdocs/mywebsite/
...
but the problem is that git init command create a bare repository which files in .git now is all in /home/james/mywebsite derectory.this caused i cannot use git pull command.but i'm not use git init --bare.why create a bare repository?
tisp: 1 mysql git version is 1.7.1. 2 i use git user created my repository and it is located at /repository/xxx.git. please help me...dear all