Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I am trying to set up git post-update hook in windows environment. Here is the code:

cd /c/inetpub/vhosts/mywebsite || exit
unset GIT_DIR
git pull hub master
exec git-update-server-info

When I run this from shell (sh post-update) everything works great. But after push I have an error:

hooks/post-update: line 7: cd: /c/inetpub/vhosts/mywebsite: Not a directory

What I'm doing wrong?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.