summaryrefslogtreecommitdiff
path: root/builtin/help.c
diff options
context:
space:
mode:
authorKyle J. McKay <mackyle@gmail.com>2015-03-08 15:37:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-03-10 22:23:28 (GMT)
commitce026cc7e2ff729c9809fef860cd696d1f7bb06c (patch)
tree1f062037cfb41e942b568c9923cc585910074b0e /builtin/help.c
parentb680a86a86f44444643b9be5bf4822feda128cd0 (diff)
downloadgit-ce026cc7e2ff729c9809fef860cd696d1f7bb06c.zip
git-ce026cc7e2ff729c9809fef860cd696d1f7bb06c.tar.gz
git-ce026cc7e2ff729c9809fef860cd696d1f7bb06c.tar.bz2
t5528: do not fail with FreeBSD shell
The FreeBSD shell converts this expression: git ${1:+-c push.default="$1"} push to this when "$1" is not empty: git "-c push.default=$1" push which causes git to fail. To avoid this we simply break up the expansion into two parts so that the whitespace which creates two arguments instead of one is outside the ${...} like so: git ${1:+-c} ${1:+push.default="$1"} push This has the desired effect on all platforms allowing the test to pass on FreeBSD. Signed-off-by: Kyle J. McKay <mackyle@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/help.c')
0 files changed, 0 insertions, 0 deletions