Updating submodules not working

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: git-client-plugin
    • Environment:

      When recursively updating git submodules an exception is thrown (see attached log file). The submodule "BuildConfig" exists and is correctly configured in my .gitmodules file.

      The command that extracts all submodules works:

      > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10

       

      But the url can not be fetched:

      > git config --get submodule.BuildScripts.url # timeout=10
      hudson.plugins.git.GitException: Command "git config --get submodule.BuildScripts.url" returned status code 1:
      ....

       

      Problem is the missing file reference to .gitmodules like it exists in the first command:

      -f .gitmodules 

       

      Edit: I found that the above behavior comes from the '.git/config' and '.gitmodules' files being inconsistent.
      I propose that for consistency reasons either '-f .gitmodules' gets removed from

      git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url

      or

      git config --get submodule.XXX.url

      is changed to 

      git config -f .gitmodules --get submodule.XXX.url

       

      As Git does favor the latter formatting I prefer using '.gitmodules' over '.git/config' for submodules.

        1. jenkins-build.log
          2 kB
          Florian
        2. jenkins-build-job.png
          88 kB
          Florian
        3. jenkins-build-job.txt
          2 kB
          Florian

            Assignee:
            Florian
            Reporter:
            Florian
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: