Git development
 help / color / mirror / Atom feed
* problems GIT_TRACE
@ 2006-07-10 11:05 Matthias Lederhofer
  2006-07-10 12:22 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Matthias Lederhofer @ 2006-07-10 11:05 UTC (permalink / raw)
  To: git

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-07-11  0:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-10 11:05 problems GIT_TRACE Matthias Lederhofer
2006-07-10 12:22 ` Junio C Hamano
2006-07-10 13:12   ` [PATCH] fix git-repack for use with GIT_TRACE Matthias Lederhofer
2006-07-11  0:11     ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox