-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reimplement project-clone subPath handling to conform to devfile API
The subDir field on starterProjects is intended to take one directory out of a starterProject rather than perform a sparse checkout. The previous subDir handling as been reworked into a regular sparse-checkout by renaming the attribute 'sparseCheckout'. The 'subDir' attribute now configures the project-clone container to 1. Clone the project to a temporary directory, set up remotes, check out a branch, etc. 2. Copy _the subdirectory specified by subDir_ from that project into $PROJECTS_ROOT This results in a folder within $PROJECTS_ROOT that is not a git repository and only contains the contents of that subfolder. Signed-off-by: Angel Misevski <[email protected]>
- Loading branch information
Showing
4 changed files
with
64 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters