@@ -76,17 +76,17 @@ def git_copy_repo(newroot, remote=None, *, verbose=True):
7676 print (f'updating copied repo { newroot } ...' )
7777 if newroot == SRCDIR :
7878 raise Exception ('this probably isn\' t what you wanted' )
79- _run_cmd ([GIT , '-C' , newroot , ' clean' , '-d' , '-f' ], verbose = verbose )
80- _run_cmd ([GIT , '-C' , newroot , 'reset' ], verbose = verbose )
81- _run_cmd ([GIT , '-C' , newroot , ' checkout' , '.' ], verbose = verbose )
82- _run_cmd ([GIT , '-C' , newroot , ' pull' , '-f' , remote ], verbose = verbose )
79+ _run_cmd ([GIT , 'clean' , '-d' , '-f' ], newroot , verbose )
80+ _run_cmd ([GIT , 'reset' ] , newroot , verbose )
81+ _run_cmd ([GIT , 'checkout' , '.' ], newroot , verbose )
82+ _run_cmd ([GIT , 'pull' , '-f' , remote ], newroot , verbose )
8383 else :
8484 print (f'copying repo into { newroot } ...' )
8585 _run_cmd ([GIT , 'clone' , remote , newroot ], verbose = verbose )
8686 if os .path .exists (remote ):
8787 # Copy over any uncommited files.
8888 reporoot = remote
89- text = _run_cmd ([GIT , '-C' , reporoot , ' status' , '-s' ], verbose = verbose )
89+ text = _run_cmd ([GIT , 'status' , '-s' ], reporoot , verbose , showcmd = False )
9090 for line in text .splitlines ():
9191 _ , _ , relfile = line .strip ().partition (' ' )
9292 relfile = relfile .strip ()
0 commit comments