@matheusbsbs / matheus-bagliano / commits / 8bb45b25b2
Fork 0

commit: quote the user name in the example

If the user runs git config --global user.name Your Name as suggested, user.name will be set to "Your". With this patch, the suggested command will be git config --global user.name "Your Name" which will set user.name to "Your Name" and hopefully help users avoid the former mistake. Signed-off-by: Matt Kraai <kraai@ftbfs.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Matt Kraai committed Feb 24, 2010 at 06:18 UTC 8bb45b25b2230c84724f6f62bfcc04a79999a90c
1 file changed +1 -1
builtin-commit.c
+1 -1
@@ -41,7 +41,7 @@ static const char implicit_ident_advice[] =
41 "on your username and hostname. Please check that they are accurate.\n"
42 "You can suppress this message by setting them explicitly:\n"
43 "\n"
44 -" git config --global user.name Your Name\n"
44 +" git config --global user.name \"Your Name\"\n"
45 " git config --global user.email you@example.com\n"
46 "\n"
47 "If the identity used for this commit is wrong, you can fix it with:\n"