@@ -48,11 +48,11 @@ def in_git_repo_context(path=os.path.curdir):
4848 path = os .path .abspath (path )
4949 shutil .rmtree (os .path .join (path , '.git' ), ignore_errors = True )
5050 try :
51- subprocess .check_call (['git' , 'init' , '-b' , 'main' , path ])
52- subprocess .check_call (['git' , 'config' , 'user.email' , 'author@example.com' ], cwd = path )
53- subprocess .check_call (['git' , 'config' , 'user.name' , 'A U Thor' ], cwd = path )
54- subprocess .check_call (['git' , 'add' , '*' ], cwd = path )
55- subprocess .check_call (['git' , 'commit' , '-q' , '-m' , 'Test' ], cwd = path )
51+ subprocess .run (['git' , 'init' , '-b' , 'main' , path ], check = True )
52+ subprocess .run (['git' , 'config' , 'user.email' , 'author@example.com' ], cwd = path , check = True )
53+ subprocess .run (['git' , 'config' , 'user.name' , 'A U Thor' ], cwd = path , check = True )
54+ subprocess .run (['git' , 'add' , '*' ], cwd = path , check = True )
55+ subprocess .run (['git' , 'commit' , '-q' , '-m' , 'Test' ], cwd = path , check = True )
5656 yield
5757 finally :
5858 # PermissionError raised on Windows.
0 commit comments