Taken straight from `GitDownloadStrategy#stage`, no idea.