[BUG?] git rev-list --all --objects triggers fetches in partial clone

From: Philippe Blain <hidden>
Date: 2024-11-15 20:51:27

Hi, 

I'm not sure if this is a bug, but I think this is not working 
as the documentation states (or, I do not understand the documentation!):


git clone --filter=blob:limit=250k git@github.com:git/git.git
cd git 
git rev-list --objects --all | \
  git cat-file --batch-check=’%(objecttype) %(objectname) %(objectsize) %(rest)’ | \
  sed -n ‘s/^blob //p’ | \
  sort --numeric-sort --reverse --key=2

The doc states that the default value for the --missing of 'git rev-list' is 'error',
which "requests that rev-list stop with an error if a missing object is encountered."
This is not what happens as each missing object is fetched one at a time.

If I use any other option for --missing (allow-any, allow-promisor, print) then
no blobs are fetched. 

Is this working as intended ?  CC-ing a few people who I think
worked on the partial clone feature.

Cheers,
Philippe.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help