jesseduffield / jesseduffield/lazygit
Deleted remotes are still listed despite not being present in local .git folder
- Dominant language
- Go
- Stars
- 82.4k
- Forks
- 3k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 19
Description
**Describe the bug**
When looking at the remotes list, it shows a lot of remotes that I have deleted. When looking at `.git/refs/remotes` the deleted remotes are indeed not present so I don't know why it lists all those remotes.
**To Reproduce**
I'm not entirely sure of an easy way to reproduce this. I'm trying to transition from gitkraken to lazygit and the remotes were deleted using gitkraken so I'm not sure what the exact steps would be.
**Expected behavior**
Shows only the list of remotes that still exist locally.
**Screenshots**
left-side is the .git/refs/remotes folder and right-side is the lazygit remotes view

All the remotes with `0 branches` are remotes that I deleted over many years. I tried using the delete function of lazygit but all I get is an error saying the remote doesn't exist.

**Version info:**
lazygit: `commit=611fabde11d24d9acc71ee26077b9a1101f59f27, build date=2024-09-18T10:56:10Z, build source=binaryRelease, version=0.44.1, os=windows, arch=amd64, git version=2.38.1.windows.1`
`git version 2.38.1.windows.1`
Contributor guide
Assessment
This issue has not been assessed yet.