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>

Stefan Beller committed Aug 23, 2016 at 14:40 UTC 5cb5fe4ae0f9329843c9b028b45df9c6b987c851
1 file changed +1 -1
transport.c
+1 -1
@@ -771,7 +771,7 @@ static void die_with_unpushed_submodules(struct string_list *needs_pushing)
771 fprintf(stderr, _("The following submodule paths contain changes that can\n"
772 "not be found on any remote:\n"));
773 for (i = 0; i < needs_pushing->nr; i++)
774 - printf(" %s\n", needs_pushing->items[i].string);
774 + fprintf(stderr, " %s\n", needs_pushing->items[i].string);
775 fprintf(stderr, _("\nPlease try\n\n"
776 " git push --recurse-submodules=on-demand\n\n"
777 "or cd to the path and use\n\n"