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

git-init: Setting submodules to false has no effect #1727

Closed
silverlyra opened this issue Dec 10, 2019 · 1 comment
Closed

git-init: Setting submodules to false has no effect #1727

silverlyra opened this issue Dec 10, 2019 · 1 comment
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@silverlyra
Copy link
Contributor

Expected Behavior

When using a git resource, setting the submodules param to false passes -submodules false to cmd/git-init.

Actual Behavior

GitResource.GetInputTaskModifier does not inspect Submodules at all and does not generate the flag. Submodules are always initialized and fetched.

Steps to Reproduce the Problem

  1. Use a git resource with params including {name: submodules, value: 'false'} in a TaskRun
  2. Feast your eyes upon the generated Pod

Additional Info

#1531 changed git-init to fetch submodules. Making this configurable with a resource param was suggested in code review, but not completely implemented. Test_GitResource_GetDownloadTaskModifier was not updated to test the new param.

I discovered this while working on implementing #1450; I'll have a fix shortly.

@vdemeester
Copy link
Member

Ohh 😓

/kind bug

@tekton-robot tekton-robot added the kind/bug Categorizes issue or PR as related to a bug. label Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants