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
Add option to specify clone options #757
Comments
One option could be to fetch only one commit of history at clone time and fetch all the history once the workspace has been started (lazy mode to fetch full history) |
This seems like something that would be useful to have somewhere in the |
I could also see value in being able to specify a For example, https://github.com/crw-samples/jboss-eap-quickstarts/blob/devfilev2/devfile.yaml will clone the whole project but only one folder, https://github.com/crw-samples/jboss-eap-quickstarts/tree/devfilev2/kitchensink-jsp is referred by the devfile. Similarly https://github.com/crw-samples/quarkus-quickstarts/tree/devfilev2 has a devfile which uses only the https://github.com/crw-samples/quarkus-quickstarts/tree/devfilev2/getting-started folder, which would exclude all the other projects and save space/time when creating a workspace (or caching content for offline/airgap scenarios) |
To update this issue for (now) 2024: DWO has the following features built in:
Both of the above features were added in #1130 and are a part of DWO v0.22 and onward. I'm closing this issue as I don't believe we have any intention of implementing shallow clones in DWO; in general, while shallow cloning is useful in CI builds, it's not recommended for most development flows and would likely cause more issues than it resolves. If we want to consider enabling partial clones (e.g. a blobless clone), we should open a separate issue. |
Description
Today, starting a workspace with for example https://github.com/che-incubator/che-code is taking a long time
But if I'm interested only in the current main branch, then I could have a way to specify the depth (history of commits) I want
For example, in github actions https://github.com/actions/checkout I have
so I would like to be able to specify the depth
Additional context
The text was updated successfully, but these errors were encountered: