[#2330] Fix merge_init to not depend on branch name.