This commit is contained in:
Christoph Reiter 2023-04-07 10:43:40 +02:00
parent 60a287290d
commit 236220ef8e

View File

@ -123,7 +123,7 @@ def run_cmd(msys2_root: PathLike, args: Sequence[PathLike], **kwargs: Any) -> No
def reset_git_repo(path: PathLike): def reset_git_repo(path: PathLike):
def clean(path): def clean():
assert os.path.exists(path) assert os.path.exists(path)
check_call(["git", "clean", "-xfdf"], cwd=path) check_call(["git", "clean", "-xfdf"], cwd=path)
check_call(["git", "reset", "--hard", "HEAD"], cwd=path) check_call(["git", "reset", "--hard", "HEAD"], cwd=path)