# Attempt to fix a panic in worktree scanning \(\#7128\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/aee0f65b26e76b398f9e64ecfc50392429c4005c)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: aee0f65b26e76b398f9e64ecfc50392429c4005c

Requested commit: aee0f65b26e76b398f9e64ecfc50392429c4005c

Commit: aee0f65b26e76b398f9e64ecfc50392429c4005c

Tree: e4fd8f945afcc67981fac94d1c11726eb0374723

Author: Conrad Irwin

Committer: GitHub

## Message

```
Attempt to fix a panic in worktree scanning (#7128)

Somehow (and this should be investigated separately) we're ending up
with paths that look like: /path/to/project/../../path/to/dependency,
these pass the Ok(repo_path) = path.strip_prefix(), but then fail.

Release Notes:

- Fixed (hopefully) a panic that could occur due to path confusing in
git status
```

## Parents

- [dbb5fad147680520956c5f62525128ad4b91e77a](https://git.cafe/gitcafe/zed/commit/dbb5fad147680520956c5f62525128ad4b91e77a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/aee0f65b26e76b398f9e64ecfc50392429c4005c?format=markdown)
