vertx-config
vertx-config copied to clipboard
RefNotFoundException is thrown when start with another branch
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.
@hoangnam2261 Any use case for picking configs from different branches?