git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Nikolai Weibull" <now@bitwi.se>
To: "Junio C Hamano" <junkio@cox.net>
Cc: git <git@vger.kernel.org>
Subject: Re: git-check-ref-format returns 1 for valid branch names
Date: Thu, 22 Mar 2007 21:42:59 +0100	[thread overview]
Message-ID: <dbfc82860703221342h4e1ade1am2961a0a996d7d20c@mail.gmail.com> (raw)
In-Reply-To: <7vejnht3x2.fsf@assigned-by-dhcp.cox.net>

On 3/22/07, Junio C Hamano <junkio@cox.net> wrote:
> "Nikolai Weibull" <now@bitwi.se> writes:
>
> > I'm obviously doing something wrong, but in git 1.5.0.4
> >
> > % git check-ref-format abc
> > % echo $?
> > 1
> >
> > What am I missing here?
>
> If you are trying to see if abc is a valid branch name, try refs/heads/abc.

Thanks.  I just saw an example in git-checkout (where it's testing
"heads/$newbranch").

  nikolai

  reply	other threads:[~2007-03-22 20:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-22 20:24 git-check-ref-format returns 1 for valid branch names Nikolai Weibull
2007-03-22 20:32 ` Junio C Hamano
2007-03-22 20:42   ` Nikolai Weibull [this message]
2007-03-22 21:03   ` Linus Torvalds
2007-03-22 21:58     ` Nikolai Weibull

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=dbfc82860703221342h4e1ade1am2961a0a996d7d20c@mail.gmail.com \
    --to=now@bitwi.se \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    /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).