Skip to content

Commit f07a524

Browse files
Pavel RoskinJunio C Hamano
authored andcommitted
fix testsuite to tolerate spaces in path
This patch allows the testsuite to run properly when the full path to the git sources contains spaces or other symbols that need to be quoted. Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent a77a922 commit f07a524

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

t/t5300-pack-object.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ test_expect_success \
4949
git-unpack-objects <test-1-${packname_1}.pack"
5050

5151
unset GIT_OBJECT_DIRECTORY
52-
cd $TRASH/.git2
52+
cd "$TRASH/.git2"
5353

5454
test_expect_success \
5555
'check unpack without delta' \
@@ -61,7 +61,7 @@ test_expect_success \
6161
return 1
6262
}
6363
done'
64-
cd $TRASH
64+
cd "$TRASH"
6565

6666
test_expect_success \
6767
'pack with delta' \
@@ -80,7 +80,7 @@ test_expect_success \
8080
git-unpack-objects <test-2-${packname_2}.pack'
8181

8282
unset GIT_OBJECT_DIRECTORY
83-
cd $TRASH/.git2
83+
cd "$TRASH/.git2"
8484
test_expect_success \
8585
'check unpack with delta' \
8686
'(cd ../.git && find objects -type f -print) |
@@ -91,7 +91,7 @@ test_expect_success \
9191
return 1
9292
}
9393
done'
94-
cd $TRASH
94+
cd "$TRASH"
9595

9696
rm -fr .git2
9797
mkdir .git2

0 commit comments

Comments
 (0)