Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consider shallow git clone for create get() function #304

Open
grahamwhaley opened this issue Feb 4, 2020 · 0 comments
Open

consider shallow git clone for create get() function #304

grahamwhaley opened this issue Feb 4, 2020 · 0 comments

Comments

@grahamwhaley
Copy link

grahamwhaley commented Feb 4, 2020

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}"

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant