git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] remote: handle pushremote config in any order order

From
Jeff King <peff@peff.net>
Date
Feb 24, 2014, 20:39 UTC
Message-ID
<20140224203946.GB25506@sigill.intra.peff.net>
In-Reply-To
<xmqq7g8k8d5r.fsf@gitster.dls.corp.google.com>
On Mon, Feb 24, 2014 at 12:32:32PM -0800, Junio C Hamano wrote:
Show 21 quoted lines
> >> +test_expect_success 'branch.*.pushremote config order is irrelevant' '
> >> +	mk_test one_repo heads/master &&
> >> +	mk_test two_repo heads/master &&
> >> +	test_config remote.one.url one_repo &&
> >> +	test_config remote.two.url two_repo &&
> >> +	test_config branch.master.pushremote two_repo &&
> >> +	test_config remote.pushdefault one_repo &&
> >> +	git push &&
> >> +	check_push_result one_repo $the_first_commit heads/master &&
> >> +	check_push_result two_repo $the_commit heads/master
> >> +'
> >> +
> 
> This test however does not pass in the Git 2.0 world, without having
> this line:
> 
>        test_config push.default matching &&
> 
> immediately before "git push".
> 
> Am I missing something?

No, you are not missing anything. I was copying and paring down the pushremote test above, and I accidentally pared out the push.default setting. It should definitely have a

  test_config push.default matching &&

before the "git push" line, as the test above does. Can you mark it up as you apply?

-Peff
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 7 in “[BUG] remote.pushdefault and branch.<name>.pushremote definition order”
  1. Jack NagelFeb 24, 2014
  2. remote: handle pushremote config in any order orderJeff King, Feb 24, 2014
  3. Junio C HamanoFeb 24, 2014
  4. Junio C HamanoFeb 24, 2014
  5. Jeff KingFeb 24, 2014
  6. Junio C HamanoFeb 24, 2014
  7. Ramkumar RamachandraFeb 24, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.