# Fix a bug where worktree creation would apply to nested git repos \(\#53771\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8e0005c0cd84aa6bd2b272ccea00da6460fc1da2

Requested commit: 8e0005c0cd84aa6bd2b272ccea00da6460fc1da2

Commit: 8e0005c0cd84aa6bd2b272ccea00da6460fc1da2

Tree: 991475dd3eb9b519c42f09f0abe7653632416f9d

Author: Mikayla Maki

Committer: GitHub

## Message

```
Fix a bug where worktree creation would apply to nested git repos (#53771)

Saw this while manually testing other stuff.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
```

## Parents

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

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