From: Matthias Lederhofer <matled@gmx.net>
To: git@vger.kernel.org
Subject: problems GIT_TRACE
Date: Mon, 10 Jul 2006 13:05:35 +0200 [thread overview]
Message-ID: <E1Fzta3-00066Z-8B@moooo.ath.cx> (raw)
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 reply other threads:[~2006-07-10 11:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-10 11:05 Matthias Lederhofer [this message]
2006-07-10 12:22 ` problems GIT_TRACE 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1Fzta3-00066Z-8B@moooo.ath.cx \
--to=matled@gmx.net \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox