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

RefNotFoundException is thrown when start with another branch #95

Open
hoangnam2261 opened this issue Aug 26, 2019 · 1 comment
Open

Comments

@hoangnam2261
Copy link

hoangnam2261 commented Aug 26, 2019

I used vertx-config-git dependency with version 3.7.0.
After I got configuration from a branch, I change parameter "branch" to get configuration on another branch WITHOUT deleting old local repo, a RefNotFoundException will be thrown with this call stack:

Caused by: org.eclipse.jgit.api.errors.RefNotFoundException: Ref dev can not be resolved
	at org.eclipse.jgit.api.CheckoutCommand.call(CheckoutCommand.java:251)
	at io.vertx.config.git.GitConfigStore.initializeGit(GitConfigStore.java:145)
	at io.vertx.config.git.GitConfigStore.<init>(GitConfigStore.java:122)

Notice: I created all branches of target repo before trying this case.

@SINGS079
Copy link

SINGS079 commented Sep 24, 2019

@hoangnam2261 Any use case for picking configs from different branches?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants