summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-10-15 13:48:02 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-10-15 13:48:02 +0900
commit77458870a5b1ab4d7c8f2c4825e888571a32979b (patch)
treedeb8b573ff7f62d6a4b7cec3c61b40d700dbf0d5 /t
parentMerge branch 'ew/hashmap' (diff)
parentsq_quote_buf_pretty: don't drop empty arguments (diff)
downloadtgif-77458870a5b1ab4d7c8f2c4825e888571a32979b.tar.xz
Merge branch 'gs/sq-quote-buf-pretty'
Pretty-printed command line formatter (used in e.g. reporting the command being run by the tracing API) had a bug that lost an argument that is an empty string, which has been corrected. * gs/sq-quote-buf-pretty: sq_quote_buf_pretty: don't drop empty arguments
Diffstat (limited to 't')
-rwxr-xr-xt/t0014-alias.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t0014-alias.sh b/t/t0014-alias.sh
index a070e645d7..2694c81afd 100755
--- a/t/t0014-alias.sh
+++ b/t/t0014-alias.sh
@@ -37,4 +37,11 @@ test_expect_success 'looping aliases - internal execution' '
# test_i18ngrep "^fatal: alias loop detected: expansion of" output
#'
+test_expect_success 'run-command formats empty args properly' '
+ GIT_TRACE=1 git frotz a "" b " " c 2>&1 |
+ sed -ne "/run_command:/s/.*trace: run_command: //p" >actual &&
+ echo "git-frotz a '\'''\'' b '\'' '\'' c" >expect &&
+ test_cmp expect actual
+'
+
test_done