Skip to content

Commit 303b3c1

Browse files
nasamuffingitster
authored andcommitted
submodule: add newline on invalid submodule error
Since 'err' contains output for multiple submodules and is printed all at once by fetch_populated_submodules(), errors for each submodule should be newline separated for readability. The same strbuf is added to with a newline in the other half of the conditional where this error is detected, so make the two consistent. Signed-off-by: Emily Shaffer <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b6d4d82 commit 303b3c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

submodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,7 @@ static int get_next_submodule(struct child_process *cp,
14781478
!is_empty_dir(ce->name)) {
14791479
spf->result = 1;
14801480
strbuf_addf(err,
1481-
_("Could not access submodule '%s'"),
1481+
_("Could not access submodule '%s'\n"),
14821482
ce->name);
14831483
}
14841484
}

0 commit comments

Comments
 (0)