vert-x3 / vertx-config

Vert.x Configuration Service
Apache License 2.0
54 stars 64 forks source link

RefNotFoundException is thrown when start with another branch #95

Open hoangnam2261 opened 5 years ago

hoangnam2261 commented 5 years ago

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 commented 5 years ago

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