submodule--helper: add a missing \n
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Tue, 7 May 2019 09:50:37 +0000 (16:50 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 May 2019 10:36:19 +0000 (19:36 +0900)
This is a complete line. We're not expecting the next function to add
anything to the same line.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c
index b80fc4ba3d88b56436fa3f6b9a132bfe9e82b79b..163a6b8b994582070c04b366950d5f827937bfd0 100644 (file)
@@ -1301,7 +1301,7 @@ static int add_possible_reference_from_superproject(
                                die(_("submodule '%s' cannot add alternate: %s"),
                                    sas->submodule_name, err.buf);
                        case SUBMODULE_ALTERNATE_ERROR_INFO:
-                               fprintf(stderr, _("submodule '%s' cannot add alternate: %s"),
+                               fprintf_ln(stderr, _("submodule '%s' cannot add alternate: %s"),
                                        sas->submodule_name, err.buf);
                        case SUBMODULE_ALTERNATE_ERROR_IGNORE:
                                ; /* nothing */