[pacman-dev] [PATCH libmakepkg 1/2] git: perform a shallow clone

Eric Engestrom eric at engestrom.ch
Sat Apr 30 00:07:29 UTC 2016


On Sat, Apr 30, 2016 at 07:48:25AM +1000, Allan McRae wrote:
> On 30/04/16 07:26, Eric Engestrom wrote:
> > This can considerably speed up the cloning process, as makepkg won't
> > have to download the whole history.
> > 
> 
> Please do a search for this.   Rejected...

Yes, sorry, I should've searched for this first, I have no excuse :/

I had a look at some threads, and the submodule issue is clear: you 
might not need them, so fetching them is potentially unnecessary work.
PKGBUILD should decide that on a case-by-case basis instead.

I'm not sure I understand the problem with shallow clones though.
If I understand it correctly, the argument given in bug 34677 is to 
allow for local development, but surely in this (uncommon) situation,
a manual `git fetch --unshallow` would be acceptable, wouldn't it?

("uncommon", because how often do you dev a package vs. how often is it
installed by other people?)

You seem to have a strong argument against it, so this question is out
of pure curiosity, not to make a point. This series is dropped, I just
want to understand why.

Cheers


More information about the pacman-dev mailing list