Re: git-check-ref-format returns 1 for valid branch names
- From
Nikolai Weibull <now@bitwi.se>
- Date
- Mar 22, 2007, 20:42 UTC
- Message-ID
- <dbfc82860703221342h4e1ade1am2961a0a996d7d20c@mail.gmail.com>
- In-Reply-To
- <7vejnht3x2.fsf@assigned-by-dhcp.cox.net>
On 3/22/07, Junio C Hamano <junkio@cox.net> wrote:
Show 11 quoted lines
> "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