diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-09-03 19:37:04 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-09-03 19:37:04 (GMT) |
commit | b4100f366c1e5adf3a254cdc6f832aa1a4461053 (patch) | |
tree | 0cd253a268b0b06a09dd3cf17e60b666d67632d5 /t/t0410-partial-clone.sh | |
parent | 3f02c0ad360d96e8dbba92f97b42ebbaa4319db1 (diff) | |
parent | db3c293ecded67128b74a03f01e65c6799ff1116 (diff) | |
download | git-b4100f366c1e5adf3a254cdc6f832aa1a4461053.zip git-b4100f366c1e5adf3a254cdc6f832aa1a4461053.tar.gz git-b4100f366c1e5adf3a254cdc6f832aa1a4461053.tar.bz2 |
Merge branch 'jt/lazy-fetch'
Updates to on-demand fetching code in lazily cloned repositories.
* jt/lazy-fetch:
fetch: no FETCH_HEAD display if --no-write-fetch-head
fetch-pack: remove no_dependents code
promisor-remote: lazy-fetch objects in subprocess
fetch-pack: do not lazy-fetch during ref iteration
fetch: only populate existing_refs if needed
fetch: avoid reading submodule config until needed
fetch: allow refspecs specified through stdin
negotiator/noop: add noop fetch negotiator
Diffstat (limited to 't/t0410-partial-clone.sh')
-rwxr-xr-x | t/t0410-partial-clone.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/t/t0410-partial-clone.sh b/t/t0410-partial-clone.sh index a5ebdf9..584a039 100755 --- a/t/t0410-partial-clone.sh +++ b/t/t0410-partial-clone.sh @@ -183,7 +183,7 @@ test_expect_success 'missing CLI object, but promised, passes fsck' ' ' test_expect_success 'fetching of missing objects' ' - rm -rf repo && + rm -rf repo err && test_create_repo server && test_commit -C server foo && git -C server repack -a -d --write-bitmap-index && @@ -194,7 +194,10 @@ test_expect_success 'fetching of missing objects' ' git -C repo config core.repositoryformatversion 1 && git -C repo config extensions.partialclone "origin" && - git -C repo cat-file -p "$HASH" && + git -C repo cat-file -p "$HASH" 2>err && + + # Ensure that no spurious FETCH_HEAD messages are written + ! grep FETCH_HEAD err && # Ensure that the .promisor file is written, and check that its # associated packfile contains the object @@ -214,7 +217,7 @@ test_expect_success 'fetching of missing objects works with ref-in-want enabled' rm -rf repo/.git/objects/* && rm -f trace && GIT_TRACE_PACKET="$(pwd)/trace" git -C repo cat-file -p "$HASH" && - grep "git< fetch=.*ref-in-want" trace + grep "fetch< fetch=.*ref-in-want" trace ' test_expect_success 'fetching of missing objects from another promisor remote' ' |