docs: suggest shallow clone in git-archive.md

we should be suggesting to make a shallow clone to reduce
the amount of data that is being transferred initially

Signed-off-by: moson-mo <mo-son@mailbox.org>
This commit is contained in:
moson-mo 2022-09-25 10:03:05 +02:00
parent 30e72d2db5
commit 137644e919
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296

View file

@ -24,10 +24,10 @@ configurations.
## Fetch/Update Archives
When a client has not yet fetched any initial archives, they should clone
the repository:
When a client has not yet fetched any initial archives, they should
shallow-clone the repository:
$ git clone https://aur.archlinux.org/archive.git aurweb-archive
$ git clone --depth=1 https://aur.archlinux.org/archive.git aurweb-archive
When updating, the repository is already cloned and changes need to be pulled
from remote: