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

Re: Bug: version 2.4 seems to have broken `git clone --progress`

From
Junio C Hamano <gitster@pobox.com>
Date
May 12, 2015, 02:04 UTC
Message-ID
<xmqqfv721rh7.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20150512002242.GA8523@glandium.org>
Mike Hommey <mh@glandium.org> writes:
Show 17 quoted lines
> So, the reason this is happening is that 2879bc3 moved sending the
> progress helper option earlier, and for clone, it's early enough that
> transport_set_verbosity happens afterwards. Since
> transport_set_verbosity only sets the progress bit, and nothing re-emits
> a helper option command when it changes, we're left with the default,
> which is that no progress is shown if the output file descripto is not
> a tty.
>
> I can see two ways to fix this:
> - Make transport_set_verbosity call transport->set_option instead of
>   defering to standard_options() in transport-helper.c.
> - Declare that transport_set_verbosity must be used before any other
>   transport_set_option, and change clone to invoke it first. Note that
>   fetch and push already do that, so this is only currently a problem
>   for clone.
>
> Junio, what do you think?

The latter sounds like more appropriate as a lower-impact short-term fix, so let's have that for now.

I however wonder if there are other settings that can be flipped after we started talking to the helper to cause a similar issue, and to prevent such breakages once and for all, we may have to take the former route in the longer term. But I think that can be done later after the dust settles.

Thanks for a quick diagnosis.
Previous: Mike HommeyNext: Mike Hommey
Message 4 of 8 in “Bug: version 2.4 seems to have broken `git clone --progress`”
  1. Jack O'ConnorMay 11, 2015
  2. Junio C HamanoMay 11, 2015
  3. Mike HommeyMay 12, 2015
  4. Junio C HamanoMay 12, 2015
  5. Mike HommeyMay 12, 2015
  6. clone: call transport_set_verbosity before anything else on the newly created transportMike Hommey, May 12, 2015
  7. Eric SunshineMay 12, 2015
  8. clone: call transport_set_verbosity before anything else on the newly created transportMike Hommey, May 12, 2015

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.