diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-10-07 11:32:58 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-10-07 11:32:58 +0900 |
commit | ae203ba414f7e0b83f8b07255898a6cff3b5c07e (patch) | |
tree | 003629b9873324ec09a786d2c2b2ea90e6e0f58a /t/t0410-partial-clone.sh | |
parent | Merge branch 'dl/cocci-everywhere' (diff) | |
parent | cache-tree: do not lazy-fetch tentative tree (diff) | |
download | tgif-ae203ba414f7e0b83f8b07255898a6cff3b5c07e.tar.xz |
Merge branch 'jt/cache-tree-avoid-lazy-fetch-during-merge'
The cache-tree code has been taught to be less aggressive in
attempting to see if a tree object it computed already exists in
the repository.
* jt/cache-tree-avoid-lazy-fetch-during-merge:
cache-tree: do not lazy-fetch tentative tree
Diffstat (limited to 't/t0410-partial-clone.sh')
-rwxr-xr-x | t/t0410-partial-clone.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t0410-partial-clone.sh b/t/t0410-partial-clone.sh index d4b7e535ea..1e389c049a 100755 --- a/t/t0410-partial-clone.sh +++ b/t/t0410-partial-clone.sh @@ -540,6 +540,20 @@ test_expect_success 'gc stops traversal when a missing but promised object is re ! grep "$TREE_HASH" out ' +test_expect_success 'do not fetch when checking existence of tree we construct ourselves' ' + rm -rf repo && + test_create_repo repo && + test_commit -C repo base && + test_commit -C repo side1 && + git -C repo checkout base && + test_commit -C repo side2 && + + git -C repo config core.repositoryformatversion 1 && + git -C repo config extensions.partialclone "arbitrary string" && + + git -C repo cherry-pick side1 +' + . "$TEST_DIRECTORY"/lib-httpd.sh start_httpd |