Skip to content

The agent that grows with you

refactor(worktree): drop the include-symlink check's dead timeout parameter

kshitijk4poora567c3ac0c97
diff --git a/hermes_cli/worktree_ops.py b/hermes_cli/worktree_ops.py
index 2cb031e0353..3975fe0b9f5 100644
--- a/hermes_cli/worktree_ops.py
+++ b/hermes_cli/worktree_ops.py
@@ -520,7 +520,7 @@ def _worktree_has_unpushed_commits(worktree_path: str, timeout: int = 10) -> boo
return True
-def _include_symlink_paths(worktree_path: str, repo_root, timeout: int = 10) -> set:
+def _include_symlink_paths(worktree_path: str, repo_root) -> set:
"""Relative paths in *worktree_path* that are ``.worktreeinclude`` directory symlinks.
``_copy_worktree_includes`` symlinks included directories back to the main checkout
@@ -555,7 +555,7 @@ def _worktree_is_dirty(worktree_path: str, repo_root, timeout: int = 10) -> bool
return False
if any(not e.startswith("?? ") for e in entries):
return True
- include_links = _include_symlink_paths(worktree_path, repo_root, timeout=timeout)
+ include_links = _include_symlink_paths(worktree_path, repo_root)
return any(e[3:].rstrip("/") not in include_links for e in entries)
except Exception:
return True