Use load_repo_head() when reloading refs