# worktree: Remove unwrap in BackgroundScanner::update_ignore_status \(\#39191\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 29afc0412ee3dbaf14d67d9800481ba415e40156

Requested commit: 29afc0412ee3dbaf14d67d9800481ba415e40156

Commit: 29afc0412ee3dbaf14d67d9800481ba415e40156

Tree: a290e59eea6cd005babe97fb050da2980f98b709

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
worktree: Remove unwrap in BackgroundScanner::update_ignore_status (#39191)

We've seen this panic come up in the last two weeks, which might be
caused by #33592. However, we are not sure what paths can cause this
`unwrap()` to fail. Therefore adding some logging around this, so that
the next time someone opens a bug report we can further diagnose the
issue.

Fixes ZED-1F6

Release Notes:

- Fixed an issue where Zed could crash when including specific paths in
a global `.gitignore` files
```

## Parents

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

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