builtin/remote: quote remote name on error to display empty name
authorShulhan <m.shulhan@gmail.com>
Thu, 13 Sep 2018 13:18:33 +0000 (20:18 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Sep 2018 16:38:18 +0000 (09:38 -0700)
When adding new remote name with empty string, git will print the
following error message,

fatal: '' is not a valid remote name\n

But when removing remote name with empty string as input, git shows the
empty string without quote,

fatal: No such remote: \n

To make these error messages consistent, quote the name of the remote
that we tried and failed to find.

Signed-off-by: Shulhan <m.shulhan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found