summaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2016-08-23 21:40:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-09-08 20:28:15 (GMT)
commit5cb5fe4ae0f9329843c9b028b45df9c6b987c851 (patch)
tree54060ea011e3bb8f09ebe23ae1809b2fbb693a76 /transport.c
parent6ebdac1bab966b720d776aa43ca188fe378b1f4b (diff)
downloadgit-5cb5fe4ae0f9329843c9b028b45df9c6b987c851.zip
git-5cb5fe4ae0f9329843c9b028b45df9c6b987c851.tar.gz
git-5cb5fe4ae0f9329843c9b028b45df9c6b987c851.tar.bz2
transport: report missing submodule pushes consistently on stderr
The surrounding advice is printed to stderr, but the list of submodules is not. Make the report consistent by reporting everything to stderr. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.c')
-rw-r--r--transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/transport.c b/transport.c
index cf8de6e..94d6dc3 100644
--- a/transport.c
+++ b/transport.c
@@ -771,7 +771,7 @@ static void die_with_unpushed_submodules(struct string_list *needs_pushing)
fprintf(stderr, _("The following submodule paths contain changes that can\n"
"not be found on any remote:\n"));
for (i = 0; i < needs_pushing->nr; i++)
- printf(" %s\n", needs_pushing->items[i].string);
+ fprintf(stderr, " %s\n", needs_pushing->items[i].string);
fprintf(stderr, _("\nPlease try\n\n"
" git push --recurse-submodules=on-demand\n\n"
"or cd to the path and use\n\n"