|
351 | 351 | done
|
352 | 352 |
|
353 | 353 | test_expect_success "--batch-check for a non-existent named object" '
|
354 |
| - test "foobar42 missing |
| 354 | + test "foobar42 missing |
355 | 355 | foobar84 missing" = \
|
356 |
| - "$( ( echo foobar42 && echo_without_newline foobar84 ) | git cat-file --batch-check)" |
| 356 | + "$( ( echo foobar42 && echo_without_newline foobar84 ) | git cat-file --batch-check)" |
357 | 357 | '
|
358 | 358 |
|
359 | 359 | test_expect_success "--batch-check for a non-existent hash" '
|
360 |
| - test "0000000000000000000000000000000000000042 missing |
| 360 | + test "0000000000000000000000000000000000000042 missing |
361 | 361 | 0000000000000000000000000000000000000084 missing" = \
|
362 | 362 | "$( ( echo 0000000000000000000000000000000000000042 &&
|
363 | 363 | echo_without_newline 0000000000000000000000000000000000000084 ) |
|
364 |
| - git cat-file --batch-check)" |
| 364 | + git cat-file --batch-check)" |
365 | 365 | '
|
366 | 366 |
|
367 | 367 | test_expect_success "--batch for an existent and a non-existent hash" '
|
368 |
| - test "$tag_sha1 tag $tag_size |
| 368 | + test "$tag_sha1 tag $tag_size |
369 | 369 | $tag_content
|
370 | 370 | 0000000000000000000000000000000000000000 missing" = \
|
371 |
| - "$( ( echo $tag_sha1 && |
372 |
| - echo_without_newline 0000000000000000000000000000000000000000 ) | |
373 |
| - git cat-file --batch)" |
| 371 | + "$( ( echo $tag_sha1 && |
| 372 | + echo_without_newline 0000000000000000000000000000000000000000 ) | |
| 373 | + git cat-file --batch)" |
374 | 374 | '
|
375 | 375 |
|
376 | 376 | test_expect_success "--batch-check for an empty line" '
|
377 |
| - test " missing" = "$(echo | git cat-file --batch-check)" |
| 377 | + test " missing" = "$(echo | git cat-file --batch-check)" |
378 | 378 | '
|
379 | 379 |
|
380 | 380 | test_expect_success 'empty --batch-check notices missing object' '
|
@@ -425,13 +425,13 @@ deadbeef missing
|
425 | 425 | missing"
|
426 | 426 |
|
427 | 427 | test_expect_success "--batch-check with multiple sha1s gives correct format" '
|
428 |
| - test "$batch_check_output" = \ |
429 |
| - "$(echo_without_newline "$batch_check_input" | git cat-file --batch-check)" |
| 428 | + test "$batch_check_output" = \ |
| 429 | + "$(echo_without_newline "$batch_check_input" | git cat-file --batch-check)" |
430 | 430 | '
|
431 | 431 |
|
432 | 432 | test_expect_success "--batch-check, -z with multiple sha1s gives correct format" '
|
433 |
| - echo_without_newline_nul "$batch_check_input" >in && |
434 |
| - test "$batch_check_output" = "$(git cat-file --batch-check -z <in)" |
| 433 | + echo_without_newline_nul "$batch_check_input" >in && |
| 434 | + test "$batch_check_output" = "$(git cat-file --batch-check -z <in)" |
435 | 435 | '
|
436 | 436 |
|
437 | 437 | test_expect_success FUNNYNAMES '--batch-check, -z with newline in input' '
|
|
0 commit comments