# project: Fix branch diff with older servers \(\#62134\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 41c0f28bf9ab5c5b7318810449ac810a74f2fdd3

Requested commit: 41c0f28bf9ab5c5b7318810449ac810a74f2fdd3

Commit: 41c0f28bf9ab5c5b7318810449ac810a74f2fdd3

Tree: 76259850a7db001ef79316abfbca28d81e75f53f

Author: Ben Kunkle

Committer: GitHub

## Message

```
project: Fix branch diff with older servers (#62134)

# Objective

Prevent branch diffs from failing when a server does not recognize
worktree diff requests.

## Solution

Send `HEAD` as a valid committed-only fallback for servers that ignore
`includes_worktree`.

## 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 adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

---

Release Notes:

- N/A
```

## Parents

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

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