[pacman-dev] [PATCH] libmakepkg/source/git: Use --bare with a refspec instead of --mirror

Allan McRae allan at archlinux.org
Sun Jan 20 21:30:55 UTC 2019


On 21/1/19 2:30 am, Eli Schwartz wrote:
> On 1/20/19 9:13 AM, Johannes Löthberg wrote:
>> This pulls in all of the branches in the same way as --mirror, but won't
>> also pull in all of the non-branch references.
>>
>> For example the refs/pull/*/{head,merge} references that GitHub creates
>> for every PR that has ever been opened against the repo can pull in a
>> very large amount of objects that aren't useful, and which can massively
>> inflate a repository.
> It's entirely possible that people use this to cherry-pick a patch from
> a PR branch. That being said, I do consider it reasonable to not fetch
> this by default and pull in the patchfile via source=() if you do need
> it... but I wonder how often people might be relying on this behavior.

I have done that in the past - I found it to be good documentation of
where the patch came from rather than using a local copy of the patch.

I'd like to see an example of what is meant by "massively inflate"?
What percentage are we talking?

A


More information about the pacman-dev mailing list