[pacman-dev] The great VCS packages overhaul of 2015

Thomas Bächler thomas at archlinux.org
Tue Mar 13 06:39:04 EDT 2012

Am 13.03.2012 11:36, schrieb Allan McRae:
> On 13/03/12 20:13, Thomas Bächler wrote:
>>> What makepkg does:
>>>> 1) goes into $vcsdir, checks for the pacman directory
>>>>    - if not present, do the git checkout
>>>>    - if present, enter and do a "git pull" unless --holdver is specified
>> This should be a path under SRCDIR. This should also be a bare clone
>> without working copy.
> Query, do you mean $srcdir or $SRCDEST there?

Ehm, SRCDEST, sorry :)

> Also, do you mean a bare (--bare) clone or a shallow (--depth 1) clone?
>  As far as I know, a bare clone can not be updated.

Of course a bare clone can be updated (man git-fetch). Only git pull
won't work. Also, regarding the problem in my other mail: git clone
--mirror might be the right thing.

> I am also not convinced about shallow clones...  For glibc, (~20,000
> commits), this save a little less that 20% of the size.  Apparently, for
> the entire GNOME git repos, it saves only 10%.  That comes at a
> disadvantage of not being able to clone it into $srcdir (which uses
> hardlinks when possible so saves space).   Well, there is a hack that
> allows you to do so but it could break at any time...

Shallow is not useful, you might want to check out old commits or
different branches.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/pacman-dev/attachments/20120313/f697bf6b/attachment.asc>

More information about the pacman-dev mailing list