@@ -76,17 +76,17 @@ def git_copy_repo(newroot, remote=None, *, verbose=True):
76
76
print (f'updating copied repo { newroot } ...' )
77
77
if newroot == SRCDIR :
78
78
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 )
83
83
else :
84
84
print (f'copying repo into { newroot } ...' )
85
85
_run_cmd ([GIT , 'clone' , remote , newroot ], verbose = verbose )
86
86
if os .path .exists (remote ):
87
87
# Copy over any uncommited files.
88
88
reporoot = remote
89
- text = _run_cmd ([GIT , '-C' , reporoot , ' status' , '-s' ], verbose = verbose )
89
+ text = _run_cmd ([GIT , 'status' , '-s' ], reporoot , verbose , showcmd = False )
90
90
for line in text .splitlines ():
91
91
_ , _ , relfile = line .strip ().partition (' ' )
92
92
relfile = relfile .strip ()
0 commit comments