Change branch to ref