Skip to content

Commit 5cb5fe4

Browse files
stefanbellergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6ebdac1 commit 5cb5fe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ static void die_with_unpushed_submodules(struct string_list *needs_pushing)
771771
fprintf(stderr, _("The following submodule paths contain changes that can\n"
772772
"not be found on any remote:\n"));
773773
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);
775775
fprintf(stderr, _("\nPlease try\n\n"
776776
" git push --recurse-submodules=on-demand\n\n"
777777
"or cd to the path and use\n\n"

0 commit comments

Comments
 (0)