# git_ui: Fix double borrow when showing worktree error message \(\#54555\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a658e1d3b0e24551e50973dc87363130025cae8e

Requested commit: a658e1d3b0e24551e50973dc87363130025cae8e

Commit: a658e1d3b0e24551e50973dc87363130025cae8e

Tree: 46f5701e8748323697cd2a9405a0ba6aadb09fbd

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
git_ui: Fix double borrow when showing worktree error message (#54555)

Fixes ZED-6Q0

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)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #54544

Release Notes:

- Fixed a crash that could occur when git worktree creating fails
```

## Parents

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

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