Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleted remotes are still listed despite not being present in local .git folder #4010

Open
IceSentry opened this issue Oct 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@IceSentry
Copy link

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

image

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.

image

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

@IceSentry IceSentry added the bug Something isn't working label Oct 24, 2024
@mark2185
Copy link
Collaborator

Out of curiosity, what does git remote -v list?

@IceSentry
Copy link
Author

IceSentry commented Oct 24, 2024

image

So only the ones in the .git folder

I'm honestly not sure where lazygit even got those from

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants