sq_quote_buf_pretty: don't drop empty arguments
authorGarima Singh <garima.singh@microsoft.com>
Mon, 7 Oct 2019 19:38:56 +0000 (12:38 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Oct 2019 03:59:29 +0000 (12:59 +0900)
commitce2d7ed2fd454d60a0957508141438f26c4100c7
treef9931ce203516b16c591299cb3a1dc7e6268a036
parent5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9
sq_quote_buf_pretty: don't drop empty arguments

Empty arguments passed on the command line can be represented by
a '', however sq_quote_buf_pretty was incorrectly dropping these
arguments altogether. Fix this problem by ensuring that such
arguments are emitted as '' instead.

Signed-off-by: Garima Singh <garima.singh@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
quote.c
t/t0014-alias.sh