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

git submodule fetch fails due to unpruned branch

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • None

      If a branch (e.g. a/b) has replaced by a branch that includes a directory (e.g. a/b/c), fetch fails with the following message:

      '''
      FATAL: Command "/usr/bin/git submodule update --init --recursive" returned status code 1:
      [...]
      error: some local refs could not be updated; try running
      'git remote prune origin' to remove any old, conflicting branches
      Unable to fetch in submodule [...]
      '''

      To fix the issue, 'git prune' should include submodules and be run before fetching.

          [JENKINS-13946] git submodule fetch fails due to unpruned branch

          Steffen Prohaska created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 144414 ] New: JNJira + In-Review [ 176143 ]

            Unassigned Unassigned
            sprohaska Steffen Prohaska
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: