submodule.c: write "Fetching submodule <foo>" to stderr
commitfbf71645d12d30219e88598c4867ef7c2fe48cee
authorJonathan Nieder <jrnieder@gmail.com>
Wed, 16 Dec 2015 00:04:06 +0000 (15 16:04 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Dec 2015 20:06:08 +0000 (16 12:06 -0800)
tree95dcd6f64c8111ec096e05449c7c59db453b6f82
parent4b9ab0ee0130090c63da2df83747b7b1d834ad98
submodule.c: write "Fetching submodule <foo>" to stderr

The "Pushing submodule <foo>" progress output correctly goes to
stderr, but "Fetching submodule <foo>" is going to stdout by
mistake.  Fix it to write to stderr.

Noticed while trying to implement a parallel submodule fetch.  When
this particular output line went to a different file descriptor, it
was buffered separately, resulting in wrongly interleaved output if
we copied it to the terminal naively.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule.c
t/t5526-fetch-submodules.sh