[aur-general] please add -depth 1 to makepkg git clone
kolewu at koloro.de
Fri Apr 5 09:41:33 EDT 2013
Am 05.04.2013 08:12, schrieb Tai-Lin Chu:
> 1. save bandwidth
> 2. less wait
> why not add --depth 1 :)
because you can't do nearly anything git related with this clone. You
can't clone, can't update, etc.
Best workflow is
* clone the repo (like downloading a source package)
* on all following calls do an update
* then do a clone to do the build (even here without '--depth 1' because
local clones are cheap)
* before the next build only remove the build-clone
With this workflow you only need to clone the repo once and then work
with your local copy.
I don't know exactly what automatic the new makepkg implements for
repository sources, but I think it will do the first two steps above.
So the PKGBUILD only has to provide the clone for the build (if the
sources are not prepared for out-of-source builds).
Hope this helps
More information about the aur-general