We are using a Windows development server for hosting my Git bare repo. We use direct file access to the server (no SSH, GIT or HTTP). This works excellent, and the team is happy.
We are now trying to have the development server perform a deploy operation every time someone pushes code in the bare repo. We created a local repo at the server and added the bare repo as remote for that as well.
We found out that using local paths in the post-receive hook does not work at all. The post-receive hook seems to search folders on the client's system instead of on the server itself. When we use //server/c$/[path] on the server (and also for the server local repo's remote settings) everything seems to work - but very slow. It is starting to drive us nuts currently, so we stopped using it for now :( .
In short, our questions are:
- Is it true that post-receive has a client local scope?
- If 1 is true: is it possible to get post-receive to operate in the server's scope?
- Has anybody successfully used a mechanism like described hereabove?
Thanks a lot for your help!