# Fix license check triggering on worktree root entry changes \(\#52902\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 43ea97a2e5001e21c6ccb1f43ded8e22a9fa8b3b

Requested commit: 43ea97a2e5001e21c6ccb1f43ded8e22a9fa8b3b

Commit: 43ea97a2e5001e21c6ccb1f43ded8e22a9fa8b3b

Tree: 8d2b239d9086c65c82fe02138c3dcb063e90f926

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Fix license check triggering on worktree root entry changes (#52902)

Had been seeing this for some time

<img width="1683" height="167" alt="bad"
src="https://github.com/user-attachments/assets/bd7370c9-617a-45c2-8785-ef268444f00a"
/>

and the culprit turned out to be the fact that the regex matched empty
strings.

The fix changes the regex to ensure it stops matching empty strings, and
patches the `log_err` callsite logic to avoid reading directories.

Release Notes:

- N/A
```

## Parents

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

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