vertx-config icon indicating copy to clipboard operation
vertx-config copied to clipboard

RefNotFoundException is thrown when start with another branch

Open hoangnam2261 opened this issue 5 years ago • 1 comments

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 avatar Aug 26 '19 09:08 hoangnam2261

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

SINGS079 avatar Sep 24 '19 06:09 SINGS079