4242
4343def logging_subprocess (
4444 popenargs ,
45- logger ,
4645 stdout_log_level = logging .DEBUG ,
4746 stderr_log_level = logging .ERROR ,
4847 ** kwargs
@@ -1285,20 +1284,20 @@ def fetch_repository(
12851284
12861285 if "origin" not in remotes :
12871286 git_command = ["git" , "remote" , "rm" , "origin" ]
1288- logging_subprocess (git_command , None , cwd = local_dir )
1287+ logging_subprocess (git_command , cwd = local_dir )
12891288 git_command = ["git" , "remote" , "add" , "origin" , remote_url ]
1290- logging_subprocess (git_command , None , cwd = local_dir )
1289+ logging_subprocess (git_command , cwd = local_dir )
12911290 else :
12921291 git_command = ["git" , "remote" , "set-url" , "origin" , remote_url ]
1293- logging_subprocess (git_command , None , cwd = local_dir )
1292+ logging_subprocess (git_command , cwd = local_dir )
12941293
12951294 if lfs_clone :
12961295 git_command = ["git" , "lfs" , "fetch" , "--all" , "--prune" ]
12971296 else :
12981297 git_command = ["git" , "fetch" , "--all" , "--force" , "--tags" , "--prune" ]
12991298 if no_prune :
13001299 git_command .pop ()
1301- logging_subprocess (git_command , None , cwd = local_dir )
1300+ logging_subprocess (git_command , cwd = local_dir )
13021301 else :
13031302 logger .info (
13041303 "Cloning {0} repository from {1} to {2}" .format (
@@ -1307,18 +1306,18 @@ def fetch_repository(
13071306 )
13081307 if bare_clone :
13091308 git_command = ["git" , "clone" , "--mirror" , remote_url , local_dir ]
1310- logging_subprocess (git_command , None )
1309+ logging_subprocess (git_command )
13111310 if lfs_clone :
13121311 git_command = ["git" , "lfs" , "fetch" , "--all" , "--prune" ]
13131312 if no_prune :
13141313 git_command .pop ()
1315- logging_subprocess (git_command , None , cwd = local_dir )
1314+ logging_subprocess (git_command , cwd = local_dir )
13161315 else :
13171316 if lfs_clone :
13181317 git_command = ["git" , "lfs" , "clone" , remote_url , local_dir ]
13191318 else :
13201319 git_command = ["git" , "clone" , remote_url , local_dir ]
1321- logging_subprocess (git_command , None )
1320+ logging_subprocess (git_command )
13221321
13231322
13241323def backup_account (args , output_directory ):
0 commit comments