diff --git a/scripts/abi_check.py b/scripts/abi_check.py index 2a90b68f7..d458d56e3 100755 --- a/scripts/abi_check.py +++ b/scripts/abi_check.py @@ -76,7 +76,7 @@ class AbiChecker(object): ) git_worktree_path = tempfile.mkdtemp() worktree_process = subprocess.Popen( - [self.git_command, "worktree", "add", git_worktree_path, git_rev], + [self.git_command, "worktree", "add", "--detach", git_worktree_path, git_rev], cwd=self.repo_path, stdout=subprocess.PIPE, stderr=subprocess.STDOUT