[pacman-dev] [PATCH 4/4] makepkg: git: update existing sources in srcdir without removing them first.
l.jirkovsky at gmail.com
Wed Dec 18 05:04:38 EST 2013
On Tue, Dec 17, 2013 at 6:34 PM, SamLT <samuel.lethiec at intelunix.fr> wrote:
> Anyway, why not just doing something like this for step 2:
> cd $git archive --format=tar --prefix=$pkgname/ . | tar xf - -C $srcdir
> (or even a shallow clone)
To expand the existing options, there's also
git clone --shared
but that is potentially dangerous.
I'm still convinced that cloning the repository is a good thing,
because it's fast, it uses hard links so it actually doesn't write
that much and it allows easy updates.
More information about the pacman-dev