Re:Re: [PATCH v3 4/4] unbundle: introduce new option UNBUNDLE_FSCK_FOLLOW_FETCH
- From
- Xing Xin <bupt_xingxin@163.com>
- Date
- May 30, 2024, 08:54 UTC
- Message-ID
- <501f41c2.904b.18fc8b4c3e9.Coremail.bupt_xingxin@163.com>
- In-Reply-To
- <ZlXInJZn7oDfyvWv@tanuki>
At 2024-05-28 20:05:48, "Patrick Steinhardt" <ps@pks.im> wrote: [snip]
Show 25 quoted lines
>>
>> +test_expect_success 'clone bundle with fetch.fsckObjects' '
>> + test_create_repo bundle-fsck &&
>> + (
>> + cd bundle-fsck &&
>> + test_commit first &&
>> + cat >data <<-EOF &&
>> + tree $(git rev-parse HEAD^{tree})
>> + parent $(git rev-parse HEAD)
>> + author A U Thor
>> + committer A U Thor
>> +
>> + commit: this is a commit with bad emails
>> +
>> + EOF
>> + git hash-object --literally -t commit -w --stdin <data >commit &&
>> + git branch bad $(cat commit) &&
>> + git bundle create bad.bundle bad
>> + ) &&
>> + test_must_fail git -c fetch.fsckObjects=true \
>> + clone bundle-fsck/bad.bundle bundle-fsck-clone 2>err &&
>> + test_grep "missingEmail" err
>> +'
>
>Do we also want to have a test for `transfer.fsckObjects`?Sure, some more combinations of "fetch.fsckObjects" and "transfer.fsckObjects" are added in tests.
Xing Xin