Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
refactor(step): drop copy-ignored strip_prefix `.expect()` for the sibling fallback (#3201)
Worktrunk Bot2f17bbf46734
diff --git a/src/commands/step/copy_ignored.rs b/src/commands/step/copy_ignored.rsindex 6a61fb157..72ff519ab 100644--- a/src/commands/step/copy_ignored.rs+++ b/src/commands/step/copy_ignored.rs@@ -210,7 +210,7 @@ pub fn step_copy_ignored(for (src_entry, is_dir) in &entries_to_copy {let relative = src_entry.strip_prefix(&source_path)- .expect("git ls-files path under worktree");+ .unwrap_or(src_entry.as_path());let dest_entry = dest_path.join(relative);if *is_dir {