git wrapper: allow setup_git_directory_gently() be called earlier