# Only fire update diff base when the dot repo is scanned \(\#2510\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4c9d24da7c2ed6fc2a6d12632f79922e63b1a732

Requested commit: 4c9d24da7c2ed6fc2a6d12632f79922e63b1a732

Commit: 4c9d24da7c2ed6fc2a6d12632f79922e63b1a732

Tree: 475879ad2266392d394002fc64f2d51ebf4782ec

Author: Mikayla Maki

Committer: GitHub

## Message

```
Only fire update diff base when the dot repo is scanned (#2510)

This PR fixes a bug in the firing of the UpdatedRepositories event which
caused it to flood collaboration with new messages on every file save.

Release Notes:

* Fixed a bug in repository detection that caused it to fire
over-eagerly (preview only)
```

## Parents

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

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

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