Skip to content

Commit

Permalink
Rename the test trash directory to contain spaces.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bryan Donlan authored and Junio C Hamano committed May 5, 2008
1 parent f69e836 commit 4a7aacc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion t/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
trash
/trash directory
6 changes: 3 additions & 3 deletions t/t6200-fmt-merge-msg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ test_expect_success 'merge-msg test #1' '
git diff actual expected
'

cat >expected <<\EOF
Merge branch 'left' of ../trash
cat >expected <<EOF
Merge branch 'left' of ../$test
EOF

test_expect_success 'merge-msg test #2' '
git checkout master &&
git fetch ../trash left &&
git fetch ../"$test" left &&
git fmt-merge-msg <.git/FETCH_HEAD >actual &&
git diff actual expected
Expand Down
4 changes: 2 additions & 2 deletions t/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -411,14 +411,14 @@ fi
. ../GIT-BUILD-OPTIONS

# Test repository
test=trash
test="trash directory"
rm -fr "$test" || {
trap - exit
echo >&5 "FATAL: Cannot prepare test area"
exit 1
}

test_create_repo $test
test_create_repo "$test"
cd "$test"

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

0 comments on commit 4a7aacc

Please sign in to comment.