# git: Fix a bug where BranchDiff shows incorrect diffs \(\#46433\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5f92b31a8a1ccb663c003ce61436e4517c58b9cb

Requested commit: 5f92b31a8a1ccb663c003ce61436e4517c58b9cb

Commit: 5f92b31a8a1ccb663c003ce61436e4517c58b9cb

Tree: ad60a2e4609429b2e51b6800fd0ed65f231ef1ed

Author: Anthony Eid

Committer: GitHub

## Message

```
git: Fix a bug where BranchDiff shows incorrect diffs (#46433)

This happens when a user's default branch has different remote and local
versions on their system. Because we would get a diff using just a
branch name without including it's remote name as well

This is a better default because it's far less confusing from a user's
perspective to debug what's going on.

Release Notes:

- git: Fix BranchDiff showing incorrect diffs when default local branch
is out of sync with the remote default branch
```

## Parents

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

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