i have setup the following in the remote repository 
1) git remote add --mirror=push mirrorepo http://gitrepo/mytestproject.git
2) Manually from my "mytestproject" folder if i run "git push mirrorrepo" 
the changes are pushed to the mirror repository.

i want to put this in a script so that as soon as i push to the main server 
a push is triggered to the mirror repository only for that repository.

in mytestproject.git/hooks i added post-receive file and added the 
following script 

nohup git push mirrorepo &


i also set chmod +x post-receive

However the script did not trigger.

is there anything else i am missing?


Reply via email to