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

Re: [PATCH] t5570: use explicit push refspec

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 15, 2012, 19:20 UTC
Message-ID
<7v7gxg2461.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20120415001133.GB32140@ecki>
Clemens Buchacher <drizzd@aon.at> writes:
Show 15 quoted lines
> On Sat, Apr 14, 2012 at 04:40:01PM -0700, Junio C Hamano wrote:
>> Clemens Buchacher <drizzd@aon.at> writes:
>> 
>> > The default mode for push without arguments will change. Some warnings
>> > are about to be enabled for such use, which causes some t5570 tests to
>> > fail because they do not expect this output. Fix this by passing an
>> > explicit refspec to git push.
>> 
>> I wonder if a better fix is to configure "push.default = matching" in the
>> test repository.  Otherwise wouldn't the result of the push change once
>> the default changes?
>
> The push.default option matters only if a refspec is not specified. By
> adding a refspec, push.default should not matter any more. Unless that
> is going to change as well?

No, I was thinking more about testing cases where there is no refspec on the command line, which we used to test, but with your patch we no longer do. In other words, your fix not just squelches the advice message and make them pass, but it changes the way the command behaves, no?

Besides, that way you do not have to swap the parameters to test_remote_error so we do not have scratch our heads wondering why we have changes to test vectors that run clones and fetches.

Previous: Clemens BuchacherNext: Clemens Buchacher
Message 5 of 18 in “git-daemon wrapper to wait until daemon is ready”
  1. git-daemon wrapper to wait until daemon is readyClemens Buchacher, Apr 14, 2012
  2. t5570: use explicit push refspecClemens Buchacher, Apr 14, 2012
  3. Junio C HamanoApr 14, 2012
  4. Clemens BuchacherApr 15, 2012
  5. Junio C HamanoApr 15, 2012
  6. Clemens BuchacherApr 15, 2012
  7. Junio C HamanoApr 15, 2012
  8. Ben WaltonApr 14, 2012
  9. Clemens BuchacherApr 14, 2012
  10. git-daemon wrapper to wait until daemon is readyClemens Buchacher, Apr 14, 2012
  11. Johannes SixtApr 14, 2012
  12. Clemens BuchacherApr 14, 2012
  13. git-daemon wrapper to wait until daemon is readyClemens Buchacher, Apr 15, 2012
  14. Zbigniew Jędrzejewski-SzmekApr 16, 2012
  15. Junio C HamanoApr 19, 2012
  16. Johannes SixtApr 15, 2012
  17. Clemens BuchacherApr 15, 2012
  18. Johannes SixtApr 15, 2012

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.