@@ -93,7 +93,7 @@ test_expect_success setup '
93
93
git checkout -- test test.t test.i &&
94
94
95
95
echo "content-test2" >test2.o &&
96
- echo "content-test3 - filename with special characters" >"test3 ' \' ' sq' \' ' ,\$x.o"
96
+ echo "content-test3 - filename with special characters" >"test3 ' \' ' sq' \' ' ,\$x= .o"
97
97
'
98
98
99
99
script=' s/^\$Id: \([0-9a-f]*\) \$/\1/p'
@@ -358,12 +358,12 @@ test_expect_success PERL 'required process filter should filter data' '
358
358
cp "$TEST_ROOT/test.o" test.r &&
359
359
cp "$TEST_ROOT/test2.o" test2.r &&
360
360
mkdir testsubdir &&
361
- cp "$TEST_ROOT/test3 ' \' ' sq' \' ' ,\$x.o" "testsubdir/test3 ' \' ' sq' \' ' ,\$x.r" &&
361
+ cp "$TEST_ROOT/test3 ' \' ' sq' \' ' ,\$x= .o" "testsubdir/test3 ' \' ' sq' \' ' ,\$x= .r" &&
362
362
>test4-empty.r &&
363
363
364
364
S=$(file_size test.r) &&
365
365
S2=$(file_size test2.r) &&
366
- S3=$(file_size "testsubdir/test3 ' \' ' sq' \' ' ,\$x.r") &&
366
+ S3=$(file_size "testsubdir/test3 ' \' ' sq' \' ' ,\$x= .r") &&
367
367
368
368
filter_git add . &&
369
369
cat >expected.log <<-EOF &&
@@ -372,35 +372,20 @@ test_expect_success PERL 'required process filter should filter data' '
372
372
IN: clean test.r $S [OK] -- OUT: $S . [OK]
373
373
IN: clean test2.r $S2 [OK] -- OUT: $S2 . [OK]
374
374
IN: clean test4-empty.r 0 [OK] -- OUT: 0 [OK]
375
- IN: clean testsubdir/test3 ' \' ' sq' \' ' ,\$x.r $S3 [OK] -- OUT: $S3 . [OK]
375
+ IN: clean testsubdir/test3 ' \' ' sq' \' ' ,\$x= .r $S3 [OK] -- OUT: $S3 . [OK]
376
376
STOP
377
377
EOF
378
378
test_cmp_count expected.log rot13-filter.log &&
379
379
380
- filter_git commit -m "test commit 2" &&
381
- cat >expected.log <<-EOF &&
382
- START
383
- init handshake complete
384
- IN: clean test.r $S [OK] -- OUT: $S . [OK]
385
- IN: clean test2.r $S2 [OK] -- OUT: $S2 . [OK]
386
- IN: clean test4-empty.r 0 [OK] -- OUT: 0 [OK]
387
- IN: clean testsubdir/test3 ' \' ' sq' \' ' ,\$x.r $S3 [OK] -- OUT: $S3 . [OK]
388
- IN: clean test.r $S [OK] -- OUT: $S . [OK]
389
- IN: clean test2.r $S2 [OK] -- OUT: $S2 . [OK]
390
- IN: clean test4-empty.r 0 [OK] -- OUT: 0 [OK]
391
- IN: clean testsubdir/test3 ' \' ' sq' \' ' ,\$x.r $S3 [OK] -- OUT: $S3 . [OK]
392
- STOP
393
- EOF
394
- test_cmp_count expected.log rot13-filter.log &&
395
-
396
- rm -f test2.r "testsubdir/test3 ' \' ' sq' \' ' ,\$x.r" &&
380
+ git commit -m "test commit 2" &&
381
+ rm -f test2.r "testsubdir/test3 ' \' ' sq' \' ' ,\$x=.r" &&
397
382
398
383
filter_git checkout --quiet --no-progress . &&
399
384
cat >expected.log <<-EOF &&
400
385
START
401
386
init handshake complete
402
387
IN: smudge test2.r $S2 [OK] -- OUT: $S2 . [OK]
403
- IN: smudge testsubdir/test3 ' \' ' sq' \' ' ,\$x.r $S3 [OK] -- OUT: $S3 . [OK]
388
+ IN: smudge testsubdir/test3 ' \' ' sq' \' ' ,\$x= .r $S3 [OK] -- OUT: $S3 . [OK]
404
389
STOP
405
390
EOF
406
391
test_cmp_exclude_clean expected.log rot13-filter.log &&
@@ -421,14 +406,14 @@ test_expect_success PERL 'required process filter should filter data' '
421
406
IN: smudge test.r $S [OK] -- OUT: $S . [OK]
422
407
IN: smudge test2.r $S2 [OK] -- OUT: $S2 . [OK]
423
408
IN: smudge test4-empty.r 0 [OK] -- OUT: 0 [OK]
424
- IN: smudge testsubdir/test3 ' \' ' sq' \' ' ,\$x.r $S3 [OK] -- OUT: $S3 . [OK]
409
+ IN: smudge testsubdir/test3 ' \' ' sq' \' ' ,\$x= .r $S3 [OK] -- OUT: $S3 . [OK]
425
410
STOP
426
411
EOF
427
412
test_cmp_exclude_clean expected.log rot13-filter.log &&
428
413
429
414
test_cmp_committed_rot13 "$TEST_ROOT/test.o" test.r &&
430
415
test_cmp_committed_rot13 "$TEST_ROOT/test2.o" test2.r &&
431
- test_cmp_committed_rot13 "$TEST_ROOT/test3 ' \' ' sq' \' ' ,\$x.o" "testsubdir/test3 ' \' ' sq' \' ' ,\$x.r"
416
+ test_cmp_committed_rot13 "$TEST_ROOT/test3 ' \' ' sq' \' ' ,\$x= .o" "testsubdir/test3 ' \' ' sq' \' ' ,\$x= .r"
432
417
)
433
418
'
434
419
0 commit comments