faasd icon indicating copy to clipboard operation
faasd copied to clipboard

Review and modify git clone statements in scripts to only checkout the required code.

Open devries opened this issue 5 years ago • 1 comments

Expected Behaviour

When performing a "git clone" operation as part of an installation. The entire code history is not necessary, only the version requested should be checked out saving bandwidth and disk space.

Current Behaviour

There are several instances in the code that use "git clone". These check out the entire repository, even though just one point in time is required.

Possible Solution

A solution is to use a shallow checkout as has been done for the cloud-init script in #115 . A similar change should be done for all these "git clone" statements.

Context

This is a cleanup. I submitted the initial pull request for cloud-init, and just want to make sure to keep this on my radar to make a pull request this week for the remaining "git clone" statements.

Your Environment

  • OS and architecture: MacOS dev machine with multipass ubuntu servers and Linode VPS.

devries avatar Oct 19 '20 15:10 devries

Please feel free to assign this to me. I wanted to keep the link for all the "git clone" statements for easy reference and to just track this so I remember to get back to it later this week.

devries avatar Oct 19 '20 15:10 devries