mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-10-27 12:15:33 +03:00
Eliminate use of git worktree prune
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
This commit is contained in:
@@ -398,13 +398,14 @@ class AbiChecker:
|
|||||||
"""Remove the specified git worktree."""
|
"""Remove the specified git worktree."""
|
||||||
shutil.rmtree(git_worktree_path)
|
shutil.rmtree(git_worktree_path)
|
||||||
submodule_output = subprocess.check_output(
|
submodule_output = subprocess.check_output(
|
||||||
[self.git_command, "submodule", "foreach", "--recursive", "git worktree prune"],
|
[self.git_command, "submodule", "foreach", "--recursive",
|
||||||
|
f'git worktree remove "{git_worktree_path}/$displaypath"'],
|
||||||
cwd=self.repo_path,
|
cwd=self.repo_path,
|
||||||
stderr=subprocess.STDOUT
|
stderr=subprocess.STDOUT
|
||||||
)
|
)
|
||||||
self.log.debug(submodule_output.decode("utf-8"))
|
self.log.debug(submodule_output.decode("utf-8"))
|
||||||
worktree_output = subprocess.check_output(
|
worktree_output = subprocess.check_output(
|
||||||
[self.git_command, "worktree", "prune"],
|
[self.git_command, "worktree", "remove", git_worktree_path],
|
||||||
cwd=self.repo_path,
|
cwd=self.repo_path,
|
||||||
stderr=subprocess.STDOUT
|
stderr=subprocess.STDOUT
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user