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
gh operations that delete the remote branch leave a dangling reference in the local git repo #8515
Comments
@asakatida Thanks for the feature request. I see that there is already a PR open to address this. I have one question though, what is the reason for wanting to remove these references? Is having them around detrimental to your workflow in anyway? |
I query these references frequently with |
What is the reasons for querying the remote references? What are you trying to achieve doing that? I think there is a bit of a misunderstanding here about the |
I query the remote references so I can script operations on the git repo |
Describe the bug
any operation like
gh pr merge -d
that deletes a remote branch leaves a reference locally to the remote branch. This can be seen by doinggit fetch --prune
after and observing a line starting with- [deleted] (none) ->
or by any of the operations fromgit
that will show remote references. They will all show the remote branch as still existing an allow referencing it in any local git command before thegit fetch --prune
.Steps to reproduce the behavior
gh pr merge -d
thengit fetch --prune
Expected vs actual behavior
Expected behavior is that
git fetch --prune
shows no changesLogs
The text was updated successfully, but these errors were encountered: