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

Re: Cannot clone redirecting stdout

From
JHJean-Luc Herren <jlh@gmx.ch>
Date
Sep 11, 2009, 08:15 UTC
Message-ID
<4AAA0737.1030005@gmx.ch>
In-Reply-To
<fc8ab2ad0909101533l135c8003m80091cb40ec93f16@mail.gmail.com>
Hi list!
Aloisio wrote:
Show 5 quoted lines
> this doesn't:
> git clone -n git://gitorious.org/qt/qt.git repo >log
> fatal: The remote end hung up unexpectedly
> fatal: early EOF
> fatal: index-pack failed

What are you trying to store in that file? The only line I observe being printed to stdout while cloning is this one:

    Initialized empty Git repository in [...]/repo/.git/

Everything else (progress status) is printed to stderr and I presume that any error messages would also go to stderr too, if any. So possibly you would be happy with this:

    git clone -n git://gitorious.org/qt/qt.git repo 2> log

which works fine here with git-1.6.4.2. Though I agree that I would expect redirecting stdout to work.

Cheers, jlh

Previous: Stefan NaeweNext: Jeff King
Message 4 of 10 in “Cannot clone redirecting stdout”
  1. AloisioSep 10, 2009
  2. Stefan NaeweSep 11, 2009
  3. Stefan NaeweSep 11, 2009
  4. Jean-Luc HerrenSep 11, 2009
  5. Jeff KingSep 11, 2009
  6. Jeff KingSep 11, 2009
  7. Johan SørensenSep 11, 2009
  8. Jeff KingSep 11, 2009
  9. Jeff KingSep 11, 2009
  10. Daniel BarkalowSep 11, 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.