From: Junio C Hamano <gitster@pobox.com>
To: Paul Smith <paul@mad-scientist.net>
Cc: Elijah Newren <newren@gmail.com>, git@vger.kernel.org
Subject: Re: Anyone know why git ls-remote output might be corrupted?
Date: Sat, 10 Jun 2023 03:58:35 +0900 [thread overview]
Message-ID: <xmqqo7loo42s.fsf@gitster.g> (raw)
In-Reply-To: <e6f9334dd93c683b97ecdf61eb06bbe28b0a4e30.camel@mad-scientist.net> (Paul Smith's message of "Fri, 09 Jun 2023 11:33:42 -0400")
Paul Smith <paul@mad-scientist.net> writes:
> I also checked and indeed, the git ls-remote command does print to both
> stdout and stderr as part of its "standard" behavior:
>
> $ git ls-remote --heads >/dev/null
> From git@git:myrepo
>
> This is unexpected to me, although of course there's nothing inherently
> wrong with it but usually you don't expect "regular" output to go to
> stderr. I suppose the idea is that people can run:
>
> $ git ls-remote --heads 2>/dev/null
>
> if they want just the output without the header.
The above sounds like a reasonable expectation; then the issue is
there are some fflush missing when the command writes to one stream
and switches to write to another stream?
Thanks.
next prev parent reply other threads:[~2023-06-09 18:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-02 18:59 Anyone know why git ls-remote output might be corrupted? Paul Smith
2023-06-02 19:12 ` Paul Smith
2023-06-02 19:34 ` rsbecker
2023-06-02 19:53 ` Paul Smith
2023-06-02 20:02 ` rsbecker
2023-06-02 20:12 ` Paul Smith
2023-06-03 1:17 ` Elijah Newren
2023-06-03 1:12 ` Elijah Newren
2023-06-04 6:00 ` Jeff King
2023-06-04 6:25 ` Jeff King
2023-06-04 6:30 ` Jeff King
2023-06-09 15:33 ` Paul Smith
2023-06-09 18:58 ` Junio C Hamano [this message]
2023-06-12 19:59 ` Paul Smith
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=xmqqo7loo42s.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=newren@gmail.com \
--cc=paul@mad-scientist.net \
/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).