Skip to content

Commit f77710c

Browse files
peffgitster
authored andcommitted
clone: drop extra newline from warning message
We don't need to put a "\n" in calls to warning(), since it adds one itself (and the user sees an extra blank line). Drop it, and while we're here, drop the full-stop from the message, which goes against our guidelines. This bug dates all the way back to 8434c2f (Build in clone, 2008-04-27), but presumably nobody noticed because it's hard to trigger: you have to clone a repository whose HEAD is unborn, but which is not otherwise empty. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent dc8c8de commit f77710c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/clone.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ static int checkout(int submodule_progress, int filter_submodules)
672672
head = resolve_refdup("HEAD", RESOLVE_REF_READING, &oid, NULL);
673673
if (!head) {
674674
warning(_("remote HEAD refers to nonexistent ref, "
675-
"unable to checkout.\n"));
675+
"unable to checkout"));
676676
return 0;
677677
}
678678
if (!strcmp(head, "HEAD")) {

0 commit comments

Comments
 (0)