Re: [PATCH] send-pack: never fetch when checking exclusions

2019-10-07 Thread Junio C Hamano
Jonathan Tan writes: > When building the packfile to be sent, send_pack() is given a list of > remote refs to be used as exclusions. For each ref, it first checks if > the ref exists locally, and if it does, passes it with a "^" prefix to > pack-objects. However, in a partial clone, the check may

[PATCH] send-pack: never fetch when checking exclusions

2019-10-07 Thread Jonathan Tan
When building the packfile to be sent, send_pack() is given a list of remote refs to be used as exclusions. For each ref, it first checks if the ref exists locally, and if it does, passes it with a "^" prefix to pack-objects. However, in a partial clone, the check may trigger a lazy fetch. Ensure t