Skip to content

'Prune when fetching' deletes branches from other remotes #971

Open

Description

@AHSauge

If 'Prune when fetching' is enabled and there are multiple remotes defined, fetching any remote will delete the branches from all other remotes. That's quite obviously not intended behaviour. Gut feeling tells me that remote branches need to tagged with the source and only pruned when that specific remote is fetched.

Activity

  1. AHSauge commented on May 22, 2026

    @AHSauge
    CollaboratorAuthor

    I didn't debug this, but looking at the code, this runs pretty quickly into libgit2, so it would seem this is a libgit2 issue

  2. added
    bug
    on Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions