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

Re: [PATCH] git-submodule should obey --quiet for subcommands

From
Jonathan del Strother <maillist@steelskies.com>
Date
Sep 24, 2009, 07:34 UTC
Message-ID
<57518fd10909240034p668f858bh17fc20715b4838c3@mail.gmail.com>
In-Reply-To
<20090924143130.6117@nanako3.lavabit.com>
On Thu, Sep 24, 2009 at 6:31 AM, Nanako Shiraishi <nanako3@lavabit.com> wrote:
Show 15 quoted lines
> Quoting Jonathan del Strother <maillist@steelskies.com>
>
>> No takers?  Perhaps I should explain my interest in this patch : we
>> use Capistrano to deploy our Rails app which contains a bunch of
>> submodules.  It's done over ssh, so the 'git submodule update' step
>> during deployment spews something along the lines of :
>>
>> Receiving objects: 0% (0/401), 1.55 MiB | 424 KiB/s
>> Receiving objects: 1% (4/401), 2.15 MiB | 612 KiB/s
>> Receiving objects: 2% (8/401), 2.90 MiB | 510 KiB/s
>> ....
>> ..
>
> Does 'git clone' itself do that to you, too, or do you see these output on separate lines only when running 'git submodule clone'? I never used 'git submodule clone' but with 'git clone' these lines seem to overwrite one after another and they never bothered me. Could your terminal emulator be broken?
>

No, git clone has the same problem when run under Capistrano, but it obeys --quiet.

That said, I always assumed that, say, 'ssh -t myhost git clone foo' would have the same problem (ie printing each progress update on a new line), but I see it works correctly. Looks like Capistrano is eating the \r somewhere. I still think my patch is valid, but I'll investigate into Capistrano some more & see if I can fix it there.

Jonathan
Previous: Nanako ShiraishiNext: Jonathan del Strother
Message 4 of 5 in “git-submodule should obey --quiet for subcommands”
  1. git-submodule should obey --quiet for subcommandsJonathan del Strother, Sep 21, 2009
  2. Jonathan del StrotherSep 23, 2009
  3. Nanako ShiraishiSep 24, 2009
  4. Jonathan del StrotherSep 24, 2009
  5. Jonathan del StrotherSep 24, 2009

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.