Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-7831

Git plugin could support pruning invalid remote branch references

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • git-plugin
    • None

    Description

      Over time the workspace git repository will accumulate a lot of invalid remote branch references – ones that have been deleted from the remote repository, but are still present in refs/remotes/*.

      The git solution to this is to run `git remote prune <git.repo.name>`.

      If this could be an option to use either periodically or before each build, it would be really useful.

      Attachments

        Activity

          abayer Andrew Bayer added a comment -

          Resolved in upcoming release.

          abayer Andrew Bayer added a comment - Resolved in upcoming release.
          dogfood dogfood added a comment - Integrated in plugins_hudson-git-plugin #35

          People

            abayer Andrew Bayer
            hobodave hobodave
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: