mirror of
https://github.com/git/git.git
synced 2026-01-10 10:13:33 +00:00
Merge branch 'jk/fetch-pack-fsck-wo-lock-pack'
"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
This commit is contained in:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user