From: Junio C Hamano Date: Wed, 16 Sep 2009 23:31:31 GMT Subject: Re: Git Hooks Message-ID: <7vzl8uv54c.fsf@alter.siamese.dyndns.org> In-Reply-To: <25482688.post@talk.nabble.com> daicoden writes: > cd /var/www/blog > thin -s 2 -C config.yml -R config.ru stop > cd .git > git pull origin master > cd .. > thin -s 2 -C config.yml -R config.ru start Unless you have a strange configuration in which you have work tree files inside a .git directory of another repository, running "git pull" after going into .git directory does not make any sense. Perhaps add this unset GIT_DIR at the very beginning of your original script would make it work better?