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

Re: 1.7.10 doesn't show file pushstatus

From
Jeff King <peff@peff.net>
Date
May 1, 2012, 08:40 UTC
Message-ID
<20120501084048.GA21904@sigill.intra.peff.net>
In-Reply-To
<20120501073326.GA21087@sigill.intra.peff.net>
On Tue, May 01, 2012 at 03:33:26AM -0400, Jeff King wrote:
Show 15 quoted lines
> In this case, send pack gets its arguments from the command-line, not
> from the options set at the transport layer. Remote-curl will pass along
> "--quiet" if we get that from the transport layer, but it does not
> otherwise pass along the "progress" flag. So there are two problems:
> 
>   1. send-pack defaults its progress boolean to 0. Before 01fdc21, that
>      was OK, because it meant "don't explicitly ask for progress". But
>      after 01fdc21 that now means "explicitly ask for no progress", and
>      the direct-transport code paths were updated without updating
>      cmd_send_pack.
> 
>   2. There's no way to tell send-pack explicitly "yes, I would like
>      progress, no matter what isatty(2) says". I doubt anybody cares
>      much, but it probably makes sense to handle that for the sake of
>      completeness.
The following patch series fixes this:
  [1/3]: send-pack: show progress when isatty(2)
  [2/3]: teach send-pack about --[no-]progress
  [3/3]: t5541: test more combinations of --progress

The first patch fixes (1) above, restoring send-pack's original behavior (for remote-curl as well as anybody else who happens to call it). Note that in doing so, it breaks "push --no-progress" for http remotes that 01fdc21 tried to fix. But it didn't actually fix it; it only appeared to work because progress was _never_ on for http. Fortunately, the existing test in t5541 still passes because it's poorly written (it uses both "--quiet" and "--no-progress", unmindful of the fact that the latter does absolutely nothing).

The second patch fixes it correctly by propagating the options through remote-curl (and as a bonus, it makes (2) above work). Other transport helpers that use send-pack would want to do the same thing (but I don't know of any that exist).

The third patch just expands the test coverage.

These are prepared directly on top of 01fdc21, so they can go on the maint track.

-Peff
-- 
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.

You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to msysgit@googlegroups.com
To unsubscribe from this group, send email to
msysgit+unsubscribe@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en
Previous: Jeff KingNext: Jeff King
Message 3 of 14 in “Re: 1.7.10 doesn't show file pushstatus”
  1. Jeff KingMay 1, 2012
  2. Jeff KingMay 1, 2012
  3. Jeff KingMay 1, 2012
  4. 1/3 send-pack: show progress when isatty(2)Jeff King, May 1, 2012
  5. 2/3 teach send-pack about --[no-]progressJeff King, May 1, 2012
  6. 3/3 t5541: test more combinations of --progressJeff King, May 1, 2012
  7. Clemens BuchacherMay 1, 2012
  8. Jeff KingMay 1, 2012
  9. David EbboMay 1, 2012
  10. Zbigniew Jędrzejewski-SzmekMay 1, 2012
  11. Junio C HamanoMay 1, 2012
  12. Clemens BuchacherMay 1, 2012
  13. Junio C HamanoMay 1, 2012
  14. Johannes SchindelinMay 2, 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.