git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Jakub Narebski <jnareb@gmail.com>
Cc: "Pat Notz" <pknotz@sandia.gov>, git@vger.kernel.org
Subject: Re: [PATCH] Fix contrib/hooks/post-receive-email for new branch with no new commits
Date: Tue, 10 Feb 2009 08:30:57 -0800	[thread overview]
Message-ID: <7vbptantj2.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <m3ab8uuwfg.fsf@localhost.localdomain> (Jakub Narebski's message of "Tue, 10 Feb 2009 07:46:31 -0800 (PST)")

Jakub Narebski <jnareb@gmail.com> 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?

  parent reply	other threads:[~2009-02-10 16:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-10 13:48 [PATCH] Fix contrib/hooks/post-receive-email for new branch with no new commits Pat Notz
2009-02-10 15:46 ` Jakub Narebski
2009-02-10 15:59   ` Johannes Schindelin
2009-02-10 16:30   ` Junio C Hamano [this message]
2009-02-10 16:43     ` [PATCH] Fix contrib/hooks/post-receive-email for new duplicate branch Pat Notz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7vbptantj2.fsf@gitster.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=jnareb@gmail.com \
    --cc=pknotz@sandia.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).