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

problems GIT_TRACE

From
MLMatthias Lederhofer <matled@gmx.net>
Date
Jul 10, 2006, 11:05 UTC
Message-ID
<E1Fzta3-00066Z-8B@moooo.ath.cx>

I just discovered a problem with GIT_TRACE. Some scripts redirect stderr to stdout and the trace messages go with it. For example from git-repack:

> name=$(git-rev-list --objects --all $rev_list 2>&1 |
>         git-pack-objects --non-empty $pack_objects .tmp-pack) ||
>         exit 1
Then for example git-pack-objects complains:
> fatal: expected sha1, got garbage:
>  trace: built-in: git 'rev-list' '--objects' '--all'

git-grep '2>&' shows a few other places that do this too, I'll take a closer look at this later. Is there any reason to redirect stderr to stdout? I think this will always fail with such a strange error message when something is written to stderr.

Next: Junio C Hamano
Message 1 of 4 in “problems GIT_TRACE”
  1. Matthias LederhoferJul 10, 2006
  2. Junio C HamanoJul 10, 2006
  3. fix git-repack for use with GIT_TRACEMatthias Lederhofer, Jul 10, 2006
  4. Junio C HamanoJul 11, 2006

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.