Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|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
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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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