Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

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

@grahamwhaley

Description

@grahamwhaley

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

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions