archlinux / asp

Arch Build Source Management Tool
MIT License
294 stars 34 forks source link

Full clone of history necessary? #12

Closed cookiengineer closed 7 years ago

cookiengineer commented 7 years ago

Hey there,

I'm currently trying to figure out if it's possible to save bandwidth by modifying this specific line: https://github.com/falconindy/asp/blob/5d64421cd9538cce28b9f554e2116495df9be49f/package.inc.sh#L170

Currently, the line does a git clone --single-branch --branch ... behind the scenes and I'm wondering if a --depth=1 would also be enough as I would probably not want to revert the history and this would save me a shitload of bandwidth on my third-country-like connected machines.

So I guess my questions are:

falconindy commented 7 years ago

If you don't need history, then you probably don't want to use asp checkout, but rather asp export.

cookiengineer commented 7 years ago

Yes, that's probably what I want. Thank you :)

For others when they find this issue: asp export uses git archive behind the scenes, so it's without a git history and just a tar archive.