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

refactor(templates): use depth of 1 in clone command to limit history… #2488

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yemaney
Copy link

@yemaney yemaney commented Jan 21, 2025

addresses #2487

Summary

Creating a project using one of the templates will clone the entire history of the repo.
Only one commit is really needed in order to access the template files used to initialize a project.
This change creates a shallow clone with a depth of 1 to reduce the amount of history that is fetched which should increase speed without sacrificing any functionality

How was it tested?

  1. devbox run build: build devbox
  2. time devbox create --template go test1: time the devbox create command and confirm it clones faster and still creates the project

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

Successfully merging this pull request may close these issues.

1 participant