From: Junio C Hamano Date: Thu, 13 Nov 2008 22:06:53 GMT Subject: Re: post-update hook Message-ID: <7vskpvffgi.fsf@gitster.siamese.dyndns.org> In-Reply-To: "Jeremy Ramer" writes: > I had to make one change to this example to get it to work. I'll put > it here for completeness > > #!/bin/sh > case "$*" in > "refs/remotes/origin/master") > cd .. > GIT_DIR=".git" > git merge refs/remotes/origin/master > ;; > esac Yeah, thanks for correction. My bad not resetting GIT_DIR. By the way, I _did_ write these seemingly extra spaces around $* and the refname on purpose.