sublime_merge icon indicating copy to clipboard operation
sublime_merge copied to clipboard

fetch --prune doesn't delete local branch

Open cbeck-wandrian opened this issue 9 months ago • 0 comments

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:

  1. Open repository
  2. Create branch foo from branch bar
  3. Make change
  4. stage, commit and push to github
  5. Merge foo with bar with auto-delete option
  6. In Sublime Merge, checkout branch bar
  7. Run command fetch --prune
  8. 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= credential.https://dev.azure.com.usehttppath=true diff.astextplain.textconv=astextplain difftool.sourcetree.cmd='WinMergeU.exe' "$LOCAL" "$REMOTE" fetch.prune=true filter.lfs.clean=git-lfs clean -- %f filter.lfs.process=git-lfs filter-process filter.lfs.required=true filter.lfs.smudge=git-lfs smudge -- %f help.format=html include.path=C:/Program Files/Git/etc/gitconfig mergetool.sourcetree.cmd='WinMergeU.exe' -wl -wr -dl Remote -dm Base -dr Local "$REMOTE" "$BASE" "$LOCAL" -o "$MERGED" mergetool.sourcetree.trustexitcode=true pack.packsizelimit=2g rebase.autosquash=true remote.origin.fetch=+refs/heads/:refs/remotes/origin/ [email protected]:Org/repo.git [email protected] user.name=Chris Beck

=== 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

cbeck-wandrian avatar Feb 21 '25 18:02 cbeck-wandrian