I have recently converted from svn. My server is under Windows (don\'t blame me, it wasn\'t my choice :}
I have created a repo with two branches \"master\" and \"sta
Few points:
Make sure you have git.exe on path. Do a where git
and you must get something like
C:\Program Files (x86)\Git\bin\git.exe
If git.cmd is being used ( from C:\Program Files (x86)\Git\cmd\git.cmd ), you have to do call git pull
for it to continue execution. I would say add git.exe
to path and start using it.
Even on Windows, you must have the shebang - #!/bin/sh
for the hooks to properly run.
If you want a hook to run on pull, you probably want to use the post-merge
hook. post-receive
and post-update
run on remote repos when you push to them.