diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-07-02 09:27:58 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-07-02 09:27:58 -0700 |
| commit | 5cf6e9b022cd281b2da66c58b5c033b9b735c160 (patch) | |
| tree | f34edb5e7836b7c084cee285f66d8a83f0f2ea11 /t | |
| parent | 77a6c4c73074501a11dd121480d2b0c8b8eab9b1 (diff) | |
| parent | 96a6621d256dc39a561913f5aadd1605ba33f161 (diff) | |
| download | git-5cf6e9b022cd281b2da66c58b5c033b9b735c160.tar.gz | |
Merge branch 'jk/fetch-pack-fsck-wo-lock-pack' into maint-2.45
"git fetch-pack -k -k" without passing "--lock-pack" (which we
never do ourselves) did not work at all, which has been corrected.
* jk/fetch-pack-fsck-wo-lock-pack:
fetch-pack: fix segfault when fscking without --lock-pack
Diffstat (limited to 't')
| -rwxr-xr-x | t/t5500-fetch-pack.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t5500-fetch-pack.sh b/t/t5500-fetch-pack.sh index b26f367620..585ea0ee16 100755 --- a/t/t5500-fetch-pack.sh +++ b/t/t5500-fetch-pack.sh @@ -993,6 +993,16 @@ test_expect_success 'ensure bogus fetch.negotiationAlgorithm yields error' ' fetch origin server_has both_have_2 ' +test_expect_success 'fetch-pack with fsckObjects and keep-file does not segfault' ' + rm -rf server client && + test_create_repo server && + test_commit -C server one && + + test_create_repo client && + git -c fetch.fsckObjects=true \ + -C client fetch-pack -k -k ../server HEAD +' + test_expect_success 'filtering by size' ' rm -rf server client && test_create_repo server && |
