Code

t5700-clone-reference: Quote $U
authorJohannes Sixt <johannes.sixt@telecom.at>
Tue, 27 May 2008 07:36:22 +0000 (09:36 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 May 2008 04:29:01 +0000 (21:29 -0700)
The new "trash directory" bites again.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5700-clone-reference.sh

index e1ca7303ac83a79eb4668c8f828e068c1220e72d..1c109160690d273451f7a089be42e45f36a3b5bb 100755 (executable)
@@ -52,13 +52,13 @@ diff expected current'
 
 cd "$base_dir"
 
-rm -f $U
+rm -f "$U"
 
 test_expect_success 'cloning with reference (no -l -s)' \
-'GIT_DEBUG_SEND_PACK=3 git clone --reference B "file://$(pwd)/A" D 3>$U'
+'GIT_DEBUG_SEND_PACK=3 git clone --reference B "file://$(pwd)/A" D 3>"$U"'
 
 test_expect_success 'fetched no objects' \
-'! grep "^want" $U'
+'! grep "^want" "$U"'
 
 cd "$base_dir"