forked from tektoncd/catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a delete param to the git-clone task for reusing PVCs
An implementation detail of the git-clone task in the catalog: it fails if the directory it's cloning into is already a git repo. This behaviour has been carried over from the GitResource. Prior to this commit the advice for users was to manually delete the directory themselves before running this Task. This PR introduces a param that, when set to "true", will empty the directory of any files and folders before performing the clone.
- Loading branch information
1 parent
8a1a977
commit 7082865
Showing
2 changed files
with
27 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