@@ -59,15 +59,15 @@ def git_repo(tmp_path: Path) -> Path:
5959 """
6060 repo_path = tmp_path / REPO_NAME
6161 repo_path .mkdir ()
62- run (["git" , "-C" , str (repo_path ), "init" ])
63- run (["git" , "-C" , str (repo_path ), "config" , "user.name" , "Name" ])
64- run (["git" , "-C" , str (repo_path ), "config" , "user.email" , "my@email.com" ])
62+ run (["git" , "-C" , str (repo_path ), "init" ], check = True )
63+ run (["git" , "-C" , str (repo_path ), "config" , "user.name" , "Name" ], check = True )
64+ run (["git" , "-C" , str (repo_path ), "config" , "user.email" , "my@email.com" ], check = True )
6565 for tagdir in REPO_SOURCE .iterdir ():
6666 ver = tagdir .name
6767 _copy_contents (tagdir , repo_path )
68- run (["git" , "-C" , str (repo_path ), "add" , "." ])
69- run (["git" , "-C" , str (repo_path ), "commit" , "-m" , f"feat: { ver } stuff" ])
70- run (["git" , "-C" , str (repo_path ), "tag" , ver ])
68+ run (["git" , "-C" , str (repo_path ), "add" , "." ], check = True )
69+ run (["git" , "-C" , str (repo_path ), "commit" , "-m" , f"feat: { ver } stuff" ], check = True )
70+ run (["git" , "-C" , str (repo_path ), "tag" , ver ], check = True )
7171 return repo_path
7272
7373
0 commit comments