Use remote branch name instead of id in Repository#copy_branch_from_repo
Flush & release
Use and improve Publication#head
Use full "refs/heads/" string for branch in updateRef call, fixes fetch