I'm trying to execute a post-receive hook on a windows server git(msysgit) installation - to sync the repo to codebasehq.

The script does nothing more than just wget "url" but it doesn't seem to be executing. I've renamed the "post-receive.sample" to "post-receive" and installed wget to windows path which works fine via the command prompt.

Is there something I'm not doing here? I would appreciate any insights on how to get this working. Thanks.

link|improve this question
Can you run that script from msysgit command line? Does wget started from that command line work? – Vi. Jun 17 '10 at 18:55
feedback

1 Answer

up vote 1 down vote accepted

Found the solution:

Turns out the Shebang on the hook script pointed to /bin in the Git installation directory.

It couldn't find wget since wget is not part of the installation. All I had to do was copy wget into git's /bin folder and it worked.

On a side note for windows users, wget can be downloaded as part of UnxUtils

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.