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

implement git shallow clone for the git-clone task #1396

Open
gonzalochief opened this issue Apr 25, 2023 · 0 comments
Open

implement git shallow clone for the git-clone task #1396

gonzalochief opened this issue Apr 25, 2023 · 0 comments

Comments

@gonzalochief
Copy link
Contributor

I'm facing issues with a repository that has a very long history, even though it is not heavy by itself.
As the git-clone task is implemented, every time there is a clone action, the cluster clones the entire repository, which is not efficien; especially when there are large repos (due to long histories).
I propose to implement git shallow clone for the git clone task, instead of the regular clone

proposal:
git clone --depth=1 $REPO_URL $SUBDIR

Original:
git clone $REPO_URL $SUBDIR

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