git-receive-pack: implement ref switch command handling