I am currently using bonobo git web server for 2012. I want to write a post-recieve hook so that I can check my repo into the active directory of my website. I declare my post-receive script like this
#!/bin/sh GIT_WORK_TREE=C:/Domains/Demo.com git checkout -f
When I push with changes to my git server it should now checkout the contents of my repo into the the Domains/Demo Folder. After I change a small thing and commit to the webserver, I check the directory of Demo.com , and see if there is any contents. Sadly there is none. Is there a way to know if the script is running? Is there a better way to tackle this problem?