Git Mailing List Archive on lore.kernel.org
 help / color / Atom feed
From: Michal Vrana <mivra1@gmail.com>
To: git@vger.kernel.org
Subject: Submodule init uses STDERR output
Date: Sun, 24 May 2020 00:44:59 +0200
Message-ID: <CA+sZKRqMaSZqj3PdpRz3xrruTbz1CJV=W9s_ox4BrhCAuQqhKA@mail.gmail.com> (raw)

Hello,
I've come across an issue that seems like a bug to me. If I clone a
repository with a submodule but want to initialize it separately, then
the error output is used during this initialization for what seems to
be a standard message.
Motivation:
Cannot use - Fail on standard error setting in a devops pipeline

Steps to reproduce:
1. git clone
2. git submodule init 2>err.txt

The err.txt contains a message like
Submodule 'xyz' (xyz.git) registered for path 'abc'
From what I've read this is the standard output in this case. And if
not then why when I use "quiet" mode then the error output is empty.
So why is the error output even used?

Platforms reproduced on:
git version 2.26.2.windows.1 - Windows server
git version 2.19.0.windows.1 - gitbash - Windows 10
git version 2.17.1 Ubuntu (Windows subsystem)

Thanks,
Michal Vrana

             reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-23 22:44 Michal Vrana [this message]
2020-05-23 23:23 ` brian m. carlson

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='CA+sZKRqMaSZqj3PdpRz3xrruTbz1CJV=W9s_ox4BrhCAuQqhKA@mail.gmail.com' \
    --to=mivra1@gmail.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

Git Mailing List Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/git/0 git/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 git git/ https://lore.kernel.org/git \
		git@vger.kernel.org
	public-inbox-index git

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.git


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git