# git: Fix pull failing when tracking remote with different branch name \(\#41768\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0b1d3d78a49ef4be76f8edafe1d5d799092928d9

Requested commit: 0b1d3d78a49ef4be76f8edafe1d5d799092928d9

Commit: 0b1d3d78a49ef4be76f8edafe1d5d799092928d9

Tree: 346eb0e66e5f8ad509ae56c30d1d689ca3bd7de2

Author: Mayank Verma

Committer: GitHub

## Message

```
git: Fix pull failing when tracking remote with different branch name (#41768)

Closes #31430

Release Notes:

- Fixed git pull failing when tracking remote with different branch name

Here's a before/after comparison when `dev` branch has upstream set to
`origin/main`:


https://github.com/user-attachments/assets/3a47e736-c7b7-4634-8cd1-aca7300c3a73
```

## Parents

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

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