From: Junio C Hamano Date: Thu, 19 Jan 2012 01:00:29 GMT Subject: Re: post-update to stash after push to non-bare current branch Message-ID: <7vboq0ld5e.fsf@alter.siamese.dyndns.org> In-Reply-To: <4F1764B9.90907@gmail.com> Neal Kreitzinger writes: >> Have you checked where in the filesystem hierarchy that script is run >> (hint: pwd)? >> > echo pwd in post-update echoes /path/WORKTREE/.git in git-push stdout. > ... > 'git-checkout -f' works manually, but in post-update hook... Stronger hint. Did you run "git checkout -f" in /path/WORKTREE/.git to back that "works manually" claim?