From: Junio C Hamano <gitster@pobox.com>
To: Daniel Barkalow <barkalow@iabervon.org>
Cc: Jay Soffian <jaysoffian@gmail.com>,
Johannes Schindelin <Johannes.Schindelin@gmx.de>,
git@vger.kernel.org, kenneth johansson <ken@kenjo.org>
Subject: Re: tracking repository
Date: Mon, 17 Mar 2008 00:48:40 -0700 [thread overview]
Message-ID: <7v3aqpdc4n.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <alpine.LNX.1.00.0803162234270.19665@iabervon.org> (Daniel Barkalow's message of "Sun, 16 Mar 2008 22:37:53 -0400 (EDT)")
Daniel Barkalow <barkalow@iabervon.org> writes:
> On Sun, 16 Mar 2008, Junio C Hamano wrote:
>
>> Daniel Barkalow <barkalow@iabervon.org> writes:
>>
>> > We don't currently have any concept of an invalid refspec;
>>
>> We don't? or just that parse_ref_spec() does not detect one?
>>
>> > ... we just have
>> > things that fall back to not being patterns and not being possible to
>> > match (due to one or the other side being invalid as a ref name).
>>
>> I am afraid that is an invitation for more bugs and confusions.
>
> Yeah, we're definitely too lenient. t3200-branch has been using the
> refspec "=" since July without anybody noticing that it's wrong.
You mean these that came in 6f084a5 (branch --track: code cleanup and
saner handling of local branches, 2007-07-10), right?
Will you fix them while you come up with a patch to tighten the parsing?
Fixing these does seem to trigger problems in later parts of the test
sequence.
---
t/t3200-branch.sh | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh
index 38a90ad..48b8a45 100755
--- a/t/t3200-branch.sh
+++ b/t/t3200-branch.sh
@@ -155,10 +155,10 @@ test_expect_success 'test tracking setup via config' \
test_expect_success 'avoid ambiguous track' '
git config branch.autosetupmerge true &&
- git config remote.ambi1.url = lalala &&
- git config remote.ambi1.fetch = refs/heads/lalala:refs/heads/master &&
- git config remote.ambi2.url = lilili &&
- git config remote.ambi2.fetch = refs/heads/lilili:refs/heads/master &&
+ git config remote.ambi1.url lalala &&
+ git config remote.ambi1.fetch refs/heads/lalala:refs/heads/master &&
+ git config remote.ambi2.url lilili &&
+ git config remote.ambi2.fetch refs/heads/lilili:refs/heads/master &&
git branch all1 master &&
test -z "$(git config branch.all1.merge)"
'
next prev parent reply other threads:[~2008-03-17 7:50 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-15 19:35 tracking repository kenneth johansson
2008-03-16 2:42 ` Junio C Hamano
2008-03-16 20:02 ` kenneth johansson
2008-03-16 20:38 ` Junio C Hamano
2008-03-16 21:28 ` Daniel Barkalow
2008-03-16 21:57 ` Junio C Hamano
2008-03-16 22:18 ` Daniel Barkalow
2008-03-16 22:30 ` Junio C Hamano
2008-03-16 23:01 ` Junio C Hamano
2008-03-16 23:11 ` Daniel Barkalow
2008-03-17 0:17 ` Junio C Hamano
2008-03-17 0:35 ` Junio C Hamano
2008-03-17 2:13 ` Daniel Barkalow
2008-03-17 2:37 ` Daniel Barkalow
2008-03-17 7:48 ` Junio C Hamano [this message]
2008-03-17 16:23 ` Daniel Barkalow
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=7v3aqpdc4n.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=barkalow@iabervon.org \
--cc=git@vger.kernel.org \
--cc=jaysoffian@gmail.com \
--cc=ken@kenjo.org \
/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