Skip to content

Commit 4a7aacc

Browse files
Bryan Donlangitster
authored andcommitted
Rename the test trash directory to contain spaces.
In order to help prevent regressions in the future, rename the trash directory for all tests to contain spaces. This patch also corrects two failures that were caused or exposed by this change. Signed-off-by: Bryan Donlan <bdonlan@fushizen.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent f69e836 commit 4a7aacc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

t/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
trash
1+
/trash directory

t/t6200-fmt-merge-msg.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ test_expect_success 'merge-msg test #1' '
8282
git diff actual expected
8383
'
8484

85-
cat >expected <<\EOF
86-
Merge branch 'left' of ../trash
85+
cat >expected <<EOF
86+
Merge branch 'left' of ../$test
8787
EOF
8888

8989
test_expect_success 'merge-msg test #2' '
9090
9191
git checkout master &&
92-
git fetch ../trash left &&
92+
git fetch ../"$test" left &&
9393
9494
git fmt-merge-msg <.git/FETCH_HEAD >actual &&
9595
git diff actual expected

t/test-lib.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,14 +411,14 @@ fi
411411
. ../GIT-BUILD-OPTIONS
412412

413413
# Test repository
414-
test=trash
414+
test="trash directory"
415415
rm -fr "$test" || {
416416
trap - exit
417417
echo >&5 "FATAL: Cannot prepare test area"
418418
exit 1
419419
}
420420

421-
test_create_repo $test
421+
test_create_repo "$test"
422422
cd "$test"
423423

424424
this_test=$(expr "./$0" : '.*/\(t[0-9]*\)-[^/]*$')

0 commit comments

Comments
 (0)