]> git.99rst.org Git - git.git/commit
clone: drop extra newline from warning message
authorJeff King <redacted>
Thu, 7 Jul 2022 23:54:51 +0000 (19:54 -0400)
committerJunio C Hamano <redacted>
Fri, 8 Jul 2022 03:57:54 +0000 (20:57 -0700)
commitf77710c5045c3e38ae440c843cb07af9e5000b6c
treeb2e387c28b42b8e8087eb05d6ef4221388bd21c3
parentdc8c8deaa6b5847733bd7df011a4c7b7d1a64e0a
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 8434c2f1af (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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/clone.c
git clone https://git.99rst.org/PROJECT