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

Fix parsing of repos with .git #1398

Merged
merged 1 commit into from
Jan 28, 2021

Conversation

natasha41575
Copy link
Contributor

@natasha41575 natasha41575 commented Jan 27, 2021

Close #1323

Parsing should check that a repository name ends in .git, rather than blindly checking if the package name contains .git anywhere.

E.g. kpt pkg get https://github.com/GoogleContainerTools/kpt/.github/workflows ./

@mikebz
Copy link
Contributor

mikebz commented Jan 27, 2021

thanks for a quick fix! Is there a way to add some tests here so we don't regress in case this gets refactored?

@natasha41575 natasha41575 merged commit 8a1032f into kptdev:master Jan 28, 2021
@natasha41575 natasha41575 deleted the ParseDotGitInDirName branch January 28, 2021 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handling of hidden directories in kpt get
3 participants