From: Junio C Hamano Date: Tue, 10 Feb 2009 16:30:57 GMT Subject: Re: [PATCH] Fix contrib/hooks/post-receive-email for new branch with no new commits Message-ID: <7vbptantj2.fsf@gitster.siamese.dyndns.org> In-Reply-To: Jakub Narebski writes: > + this_branch=$refname > + other_branches=$(git for-each-ref --format='%(refname)' refs/heads/ | > + grep -v $this_branch) This is still not quite right. grep -F -v "$this_branch" perhaps?