index-pack: run setup_git_directory_gently() sooner