diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2018-01-03 17:54:50 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-01-03 15:55:48 -0800 |
commit | 567c53d00f194a2826dda0b6be5d66283138377d (patch) | |
tree | 54e9d9c08e7e3052d8db6e14b3b5f25f0939b8ac /t/t7500-commit.sh | |
parent | 42e6fde5c28150206956ea4be490d886c4ecbd68 (diff) | |
download | git-567c53d00f194a2826dda0b6be5d66283138377d.tar.gz |
Allow the test suite to pass in a directory whose name contains spaces
It is totally legitimate to clone Git's source code anywhere, including
into, say, directories whose name (or the name of its absolute path)
contains spaces.
However, a couple of tests failed to anticipate this, for lack of
quoting (or in one instance, for failure to expect more than one space
in the absolute path of the TEST_DIRECTORY). This can be easily verified
by calling these commands in your current clone:
git clone . with\ spaces
cd with\ spaces
make -j15 test
Let's fix this.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7500-commit.sh')
-rwxr-xr-x | t/t7500-commit.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t7500-commit.sh b/t/t7500-commit.sh index 116885a260..ea009b488a 100755 --- a/t/t7500-commit.sh +++ b/t/t7500-commit.sh @@ -130,8 +130,8 @@ EOF test_expect_success 'commit message from template with whitespace issue' ' echo "content galore" >>foo && git add foo && - GIT_EDITOR="$TEST_DIRECTORY"/t7500/add-whitespaced-content git commit \ - --template "$TEMPLATE" && + GIT_EDITOR=\""$TEST_DIRECTORY"\"/t7500/add-whitespaced-content \ + git commit --template "$TEMPLATE" && commit_msg_is "commit message" ' |