RE: [PATCH 7/8] receive-pack: skip connectivity checks on delete-only commands
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- May 21, 2021, 18:53 UTC
- Message-ID
- <60a801bdd1b4b_5580620828@natae.notmuch>
- In-Reply-To
- <68c60aff0c77c562aba5613ccbb9ab33ad8e0e08.1621451532.git.ps@pks.im>
Patrick Steinhardt wrote:
Show 5 quoted lines
> In the case where git-receive-pack(1) receives only commands which > delete references, then per technical specification the client MUST NOT > send a packfile. As a result, we know that no new objects have been > received, which makes it a moot point to check whether all received > objects are fully connected.
I don't know if this is related but yesterday I decided to delete a bunch of refs from a forked repo in GitHub. I did it naively with a for loop and so it was doing a bunch of `git push myrepo :ref`.
It was unbearably slow.
Sure, it was a stupid thing to do, but maybe it can help you do some tests.
Cheers.
-- Felipe Contreras