fetch --prune doesn't delete local branch
Version info
- OS: Windows 11 Version 10.0.26100 Build 26100
- Build: 2102
Description
When I use the fetch --prune menu item, fetch is called, but local branches where the remote has been merged and deleted are not pruned.
Steps to reproduce the behavior:
- Open repository
- Create branch
foofrom branchbar - Make change
- stage, commit and push to github
- Merge
foowithbarwith auto-delete option - In Sublime Merge, checkout branch
bar - Run command
fetch --prune - Confirm that REMOTES / origin /
does not contain branch
foo
Expected behavior
I would expect the local copy of foo to be deleted but it is not.
Debug Information === App Version Information === Build: 2102
=== Git Version Information ===
Using Git: C:\Program Files\Sublime Merge\Git\cmd\git.exe (bundled)
git version 2.39.1.windows.1
PATH:
=== Browse Page Information === HEAD: 0576410da9a8b3b0b8104055741a7ea0613db3b9 Is in merge: 0 Is in cherry_pick: 0 Is in rebase: 0 Is in revert: 0
=== Git Status Information === ?? thing.xml
=== Our Status Information === ?? thing.xml
=== Git Config Information === branch.foo.merge=refs/heads/foo branch.foo.remote=origin branch.foo.vscode-merge-base=origin/foo branch.bar.merge=refs/heads/bar branch.bar.remote=origin branch.bar.vscode-merge-base=origin/bar
color.interactive=true
color.ui=auto
core.autocrlf=input
core.bare=false
core.eol=lf
core.excludesfile==gitignore_global.txt
core.filemode=false
core.hookspath=.husky
core.ignorecase=true
core.logallrefupdates=true
core.repositoryformatversion=0
core.symlinks=false
credential.helper=manager-core
credential.helperselector.selected=
=== Our Config Information ===
Git Config Path Information
Using config path: /C/ProgramData/Git/config
Using config path: /C/Program Files/Sublime Merge/Git/etc/gitconfig
Our config output is identical to the Git config output
=== Git Attributes Information === git check_attr --all output
=== Our Modified Files Newline Normalisation and EOL Information ===
=== Our Modified Files Flag Information === Ignoring symlinks: 1
=== Staged Files Information ===
=== Repository Statistics === Commit Count: 130 Untracked Files Count: 1 Modified Files Count: 0 Staged Files Count: 0 Submodule Count: 0 Loose Objects Count: 1632 Packfile Count: 12