Skip to content

Commit 3676b13

Browse files
committed
Fix fs_root computation
1 parent 9ee1a4c commit 3676b13

File tree

1 file changed

+1
-1
lines changed
  • crates/depot/src/workspace

1 file changed

+1
-1
lines changed

crates/depot/src/workspace/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ impl Workspace {
204204
Some(cwd) => cwd,
205205
None => env::current_dir()?,
206206
};
207-
let fs_root = cwd.ancestors().next().unwrap().to_path_buf();
207+
let fs_root = cwd.ancestors().last().unwrap().to_path_buf();
208208
let git_root = utils::get_git_root(&cwd);
209209
let max_ancestor: &Path = git_root.as_deref().unwrap_or(&fs_root);
210210
let root = find_workspace_root(max_ancestor, &cwd)?;

0 commit comments

Comments
 (0)