aboutsummaryrefslogtreecommitdiff
path: root/src/app/api/worktrees.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/api/worktrees.rs')
-rw-r--r--src/app/api/worktrees.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/app/api/worktrees.rs b/src/app/api/worktrees.rs
index e11e69ce..2ae282a1 100644
--- a/src/app/api/worktrees.rs
+++ b/src/app/api/worktrees.rs
@@ -1367,7 +1367,10 @@ mod tests {
let ResponseResult::WorktreeList { source, worktrees } = success.result else {
panic!("expected worktree_list response");
};
- assert_eq!(source.repo_root, repo.display().to_string());
+ assert_eq!(
+ crate::worktree::canonical_or_original(std::path::Path::new(&source.repo_root)),
+ crate::worktree::canonical_or_original(&repo)
+ );
assert_eq!(
source.source_workspace_id.as_deref(),
Some(parent_id.as_str())