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

[BUG] repack --drop-filtered aborts when a filtered blob is referenced by the index

From
Kkongfankaikai <kongfankaikai@foxmail.com>
Date
Nov 11, 2026, 16:51 UTC
Message-ID
<tencent_AC7FF23968DCD0078A6B863A42BCB5ED4E05@qq.com>
Hi Git developers,
I ran into an issue using `git repack --drop-filtered` in a partial clone repository.
Problem
When a blob selected by the filter for dropping is referenced by the current index, Git aborts the entire repack with:
`fatal: cannot drop 'path/to/large-file.bin' (object-id): it is referenced by the current index`
This stops other eligible blobs from being dropped, even though those blobs are not referenced by the index.
Expected behavior
I’m wondering if Git could skip blobs referenced by the index and continue dropping the rest of the eligible objects, instead of aborting the whole operation.
For example:
Blob A: eligible for dropping, not referenced by index → drop
Blob B: eligible for dropping, referenced by index → skip
Blob C: eligible for dropping, not referenced by index → drop
The repack could complete successfully, optionally emitting a warning for skipped blobs.
Question
Is there a specific reason this condition is treated as fatal rather than skipping the affected objects?
This behavior would be especially helpful for partial clones with large working trees.
Thanks!
Next: Siddharth Shrimali
Message 1 of 2 in “[BUG] repack --drop-filtered aborts when a filtered blob is referenced by the index”
  1. kongfankaikaiNov 11, 2026
  2. Siddharth ShrimaliNov 12, 2026

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.