git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] t5616: use correct flag to check object is missing

From
JTJonathan Tan <jonathantanmy@google.com>
Date
Jun 11, 2019, 21:06 UTC
Message-ID
<c09d6119e51d70390d130cd9c47ef8d363244f80.1560286956.git.jonathantanmy@google.com>
In-Reply-To
<cover.1560286956.git.jonathantanmy@google.com>

If we want to check whether an object is missing, the correct flag to pass to rev-list is --ignore-missing; --exclude-promisor-objects will exclude any object that came from the promisor remote, whether it is present or missing. Use the correct flag.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
---
 t/t5616-partial-clone.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/t5616-partial-clone.sh b/t/t5616-partial-clone.sh
index f1baf83502..8b9b471a62 100755
--- a/t/t5616-partial-clone.sh
+++ b/t/t5616-partial-clone.sh
@@ -359,7 +359,7 @@ test_expect_success 'tolerate server sending REF_DELTA against missing promisor
 		--filter=blob:none $HTTPD_URL/one_time_sed/server repo &&
 
 	# Sanity check to ensure that the client does not have that blob.
-	git -C repo rev-list --objects --exclude-promisor-objects \
+	git -C repo rev-list --objects --ignore-missing \
 		-- $(cat deltabase) >objlist &&
 	test_line_count = 0 objlist &&
 
-- 
2.22.0.rc2.383.gf4fbbf30c2-goog
Previous: Jonathan TanNext: Jonathan Tan
Message 2 of 4 in “Improve test code coverage on jt/partial-clone-missing-ref-delta-base”
  1. 0/2 Improve test code coverage on jt/partial-clone-missing-ref-delta-baseJonathan Tan, Jun 11, 2019
  2. 1/2 t5616: use correct flag to check object is missingJonathan Tan, Jun 11, 2019
  3. 2/2 t5616: cover case of client having delta baseJonathan Tan, Jun 11, 2019
  4. Derrick StoleeJun 12, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.