From: Delan Azabani <delan@azabani.com>
To: git@vger.kernel.org
Subject: can't redirect git's progress output (stderr)
Date: Mon, 01 Nov 2010 20:40:30 +0800 [thread overview]
Message-ID: <4CCEB53E.9080102@azabani.com> (raw)
Hi all,
I'm writing a URI handler for git that uses bash/zenity to allow the
user to clone a git repository when a git:// link is clicked in a browser.
I'm having a bit of trouble getting git's output into zenity, however.
git outputs its progress messages (everything except the "Initializing"
message) on stderr, which shouldn't be a problem. Something weird has
happened though; the moment I try to pipe git's stderr to stdout or a
file, it disappears.
A simple way to test this:
git clone git://your.favourite/git/repo 2> file1
git clone git://your.favourite/git/repo 2>&1 > file2
file1 will be empty (why?) and file2 will contain only the
"Initializing" message, which came from stdout.
TL;DR why can't I pipe git's stderr output?
Help would be greatly appreciated; thanks in advance.
next reply other threads:[~2010-11-01 13:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-01 12:40 Delan Azabani [this message]
2010-11-01 14:42 ` can't redirect git's progress output (stderr) Andreas Schwab
2010-11-01 20:38 ` Torsten Bögershausen
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=4CCEB53E.9080102@azabani.com \
--to=delan@azabani.com \
--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;
as well as URLs for NNTP newsgroup(s).