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

Eli Schwartz eschwartz at archlinux.org
Sun Jan 20 16:30:04 UTC 2019

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.

Eli Schwartz
Bug Wrangler and Trusted User

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1601 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20190120/35f9394a/attachment.asc>

More information about the pacman-dev mailing list