# worktree: Refresh all repositories sharing a changed git directory \(\#60664\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 11d216d8bf3fc33000e5a833d8b5bcf7e581adbb

Requested commit: 11d216d8bf3fc33000e5a833d8b5bcf7e581adbb

Commit: 11d216d8bf3fc33000e5a833d8b5bcf7e581adbb

Tree: 472b4a7d443225a48db7f416d9d66ee0cf28954a

Author: Lukas Wirth

Committer: GitHub

## Message

```
worktree: Refresh all repositories sharing a changed git directory (#60664)

update_git_repositories mapped a changed .git path to a repository with
find_map, so when several repositories share a git directory - a main
checkout plus one of its linked worktrees in the same project worktree -
a ref update under the shared common dir only bumped git_dir_scan_id on
whichever repository iterated first, leaving the others stale until an
unrelated event happened to refresh them. Collect every matching
repository and bump each one.

---

Release Notes:

- N/A or Added/Fixed/Improved ...
```

## Parents

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

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