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

gittestserver: Add InitRepo() to initialize a repo #153

Merged
merged 1 commit into from
Oct 5, 2021

Conversation

darkowlzz
Copy link
Contributor

GitServer.InitRepo() can be used to initialize a repo in the git server
with a given fixture. The repo is created internally using go-git over
the file protocol, irrespective of the git server.

This is needed for fluxcd/source-controller#445 to use the git test server.

GitServer.InitRepo() can be used to initialize a repo in the git server
with a given fixture. The repo is created internally using go-git over
the file protocol, irrespective of the git server.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @darkowlzz

@stefanprodan stefanprodan merged commit 0cb90ff into fluxcd:main Oct 5, 2021
@hiddeco hiddeco added area/testserver Test server related issues and pull requests enhancement New feature or request labels Oct 5, 2021
@darkowlzz darkowlzz deleted the gittestserver-init-repo branch October 5, 2021 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testserver Test server related issues and pull requests enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants