Strip refs/remotes off of remote heads