cloud-native-setup icon indicating copy to clipboard operation
cloud-native-setup copied to clipboard

consider shallow git clone for create `get()` function

Open grahamwhaley opened this issue 5 years ago • 0 comments

I'm wondering if it will be possible to use a shallow clone in the get function of the create_stack.sh code - right now I'm staring at quite a big download waiting for the efk to pull - and I suspect 90% of it is not needed. The code is currently:

function get_repo() {
	local repo="${1}"
	local path="${2}"
	clone_dir=$(basename "${repo}" .git)
	[[ -d "${path}/${clone_dir}" ]] || git -C "${path}" clone "${repo}"

}

grahamwhaley avatar Feb 04 '20 17:02 grahamwhaley