While fixing the tests in the previous PR (#48338), I noticed that the `delete_branch` tests only verified the UI state changes rather than the actual state of the underlying repository. Currently, if `delete_branch` were a no-op that returned Ok(), the tests would still pass incorrectly. This PR addresses that gap by ensuring the branch is actually removed from the repository. |Before|After| |--|--| |<img width="3476" height="2564" alt="图片" src="https://github.com/user-attachments/assets/f5c4c5c4-64fe-4074-9fff-fb166d160d77" />|<img width="3476" height="2564" alt="CleanShot 2026-03-18 at 17 51 36@2x" src="https://github.com/user-attachments/assets/47419d37-5051-4139-969e-65a1347bf555" />| Before you mark this PR as ready for review, make sure that you have: - [x] Added a solid test coverage and/or screenshots from doing manual testing - [x] Done a self-review taking into account security and performance aspects - [ ] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - N/A *or* Added/Fixed/Improved ...
2 files changedLine totals unavailable