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

[PATCH v2 0/2] Fix overriding of partial clone filter when lazy-fetching

From
JTJonathan Tan <jonathantanmy@google.com>
Date
Sep 28, 2020, 22:26 UTC
Message-ID
<cover.1601331788.git.jonathantanmy@google.com>
In-Reply-To
<cover.1600743698.git.jonathantanmy@google.com>

Thanks everyone for your comments. Patch 1 is exactly the same, and in patch 2, I've changed the config check to use test_cmp_config with "--get-all", as requested.

Comment noted about saying "this" without informing the reader what it's referring to - in this case, it was about the issue in patch 2.

Jonathan Tan (2):
  promisor-remote: remove unused variable
  fetch: do not override partial clone filter
 builtin/fetch.c               |  2 +-
 list-objects-filter-options.c | 10 +++++++++-
 promisor-remote.c             |  5 -----
 promisor-remote.h             |  2 +-
 t/t5601-clone.sh              |  3 ++-
 5 files changed, 13 insertions(+), 9 deletions(-)
Range-diff against v1:
-:  ---------- > 1:  625e7f148e promisor-remote: remove unused variable
1:  af960f33b6 ! 2:  c3ced59875 fetch: do not override partial clone filter
    @@ list-objects-filter-options.c: void partial_clone_register(
      
     
      ## t/t5601-clone.sh ##
    -@@ t/t5601-clone.sh: test_expect_success 'partial clone with -o' '
    - 	git clone -o blah --filter=blob:limit=0 "file://$(pwd)/server" client
    +@@ t/t5601-clone.sh: test_expect_success 'partial clone' '
    + 
    + test_expect_success 'partial clone with -o' '
    + 	partial_clone_server server &&
    +-	git clone -o blah --filter=blob:limit=0 "file://$(pwd)/server" client
    ++	git clone -o blah --filter=blob:limit=0 "file://$(pwd)/server" client &&
    ++	test_cmp_config -C client "blob:limit=0" --get-all remote.blah.partialclonefilter
      '
      
    -+test_expect_success 'ensure that filter is written to config' '
    -+	FILTER=$(git -C client config --get remote.blah.partialclonefilter) &&
    -+	test "$FILTER" = "blob:limit=0"
    -+'
    -+
      test_expect_success 'partial clone: warn if server does not support object filtering' '
    - 	rm -rf server client &&
    - 	test_create_repo server &&
-- 
2.28.0.709.gb0816b6eb0-goog
Previous: Junio C HamanoNext: Jonathan Tan
Message 8 of 11 in “Fix overriding of partial clone filter when lazy-fetching”
  1. 0/2 Fix overriding of partial clone filter when lazy-fetchingJonathan Tan, Sep 22, 2020
  2. 2/2 fetch: do not override partial clone filterJonathan Tan, Sep 22, 2020
  3. Junio C HamanoSep 22, 2020
  4. Derrick StoleeSep 22, 2020
  5. Junio C HamanoSep 22, 2020
  6. 1/2 promisor-remote: remove unused variableJonathan Tan, Sep 22, 2020
  7. Junio C HamanoSep 22, 2020
  8. 0/2 Fix overriding of partial clone filter when lazy-fetchingJonathan Tan, Sep 28, 2020
  9. 2/2 fetch: do not override partial clone filterJonathan Tan, Sep 28, 2020
  10. Junio C HamanoSep 28, 2020
  11. 1/2 promisor-remote: remove unused variableJonathan Tan, Sep 28, 2020

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.