@@ -354,36 +354,6 @@ test_expect_success 'stale dirs do not cause d/f conflicts (reflogs off)' '
354
354
test_must_be_empty actual
355
355
'
356
356
357
- # Triggering the bug detected by this test requires a newline to fall
358
- # exactly BUFSIZ-1 bytes from the end of the file. We don't know
359
- # what that value is, since it's platform dependent. However, if
360
- # we choose some value N, we also catch any D which divides N evenly
361
- # (since we will read backwards in chunks of D). So we choose 8K,
362
- # which catches glibc (with an 8K BUFSIZ) and *BSD (1K).
363
- #
364
- # Each line is 114 characters, so we need 75 to still have a few before the
365
- # last 8K. The 89-character padding on the final entry lines up our
366
- # newline exactly.
367
- test_expect_success REFFILES,SHA1 ' parsing reverse reflogs at BUFSIZ boundaries' '
368
- git checkout -b reflogskip &&
369
- zf=$(test_oid zero_2) &&
370
- ident="abc <xyz> 0000000001 +0000" &&
371
- for i in $(test_seq 1 75); do
372
- printf "$zf%02d $zf%02d %s\t" $i $(($i+1)) "$ident" &&
373
- if test $i = 75; then
374
- for j in $(test_seq 1 89); do
375
- printf X || return 1
376
- done
377
- else
378
- printf X
379
- fi &&
380
- printf "\n" || return 1
381
- done >.git/logs/refs/heads/reflogskip &&
382
- git rev-parse reflogskip@{73} >actual &&
383
- echo ${zf}03 >expect &&
384
- test_cmp expect actual
385
- '
386
-
387
357
test_expect_success ' no segfaults for reflog containing non-commit sha1s' '
388
358
git update-ref --create-reflog -m "Creating ref" \
389
359
refs/tests/tree-in-reflog HEAD &&
@@ -397,18 +367,6 @@ test_expect_failure 'reflog with non-commit entries displays all entries' '
397
367
test_line_count = 3 actual
398
368
'
399
369
400
- # This test takes a lock on an individual ref; this is not supported in
401
- # reftable.
402
- test_expect_success REFFILES ' reflog expire operates on symref not referrent' '
403
- git branch --create-reflog the_symref &&
404
- git branch --create-reflog referrent &&
405
- git update-ref referrent HEAD &&
406
- git symbolic-ref refs/heads/the_symref refs/heads/referrent &&
407
- test_when_finished "rm -f .git/refs/heads/referrent.lock" &&
408
- touch .git/refs/heads/referrent.lock &&
409
- git reflog expire --expire=all the_symref
410
- '
411
-
412
370
test_expect_success ' continue walking past root commits' '
413
371
git init orphanage &&
414
372
(
0 commit comments