git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Submodule init uses STDERR output

From
MVMichal Vrana <mivra1@gmail.com>
Date
May 23, 2020, 22:44 UTC
Message-ID
<CA+sZKRqMaSZqj3PdpRz3xrruTbz1CJV=W9s_ox4BrhCAuQqhKA@mail.gmail.com>

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

Next: brian m. carlson
Message 1 of 2 in “Submodule init uses STDERR output”
  1. Michal VranaMay 23, 2020
  2. brian m. carlsonMay 23, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.