Review and modify git clone statements in scripts to only checkout the required code.
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.
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.