BranchChangeListener.branchHasChanged() received wrong branch name if user created new branch


I added BranchChangeListener

project.getMessageBus().connect().subscribe(BranchChangeListener.VCS_BRANCH_CHANGED, new DmBranchChangeListener(project));
public class DmBranchChangeListener implements BranchChangeListener {
/*some code*/
public void branchHasChanged(@NotNull String branchName) {
/*some code*/

 but when the user adds a new branch with checkout, the listener gets the branch name "HEAD" instead of the new branch name


Please sign in to leave a comment.