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

The new submodule pattern matching breaks submodules with spaces in name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • git-client-plugin
    • None
    • git-client-pluging 2.7.0
      jenkins 2.102

      The new submodule pattern matching introduced in 52f681e6153eb088495edd497a82d6dc919dcae3 commit in git-client-plugin 2.7.0 for JENKINS-46054 issue breaks submodules with spaces in name.

      The previous pattern was this one:

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

      But now it's this one: 

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

      So submodule with space in name are not matched anymore: 

      submodule.Submodules/Foo iOS Library.url ssh://git@stash.mobile.bar.com:7999/foo/ios-library.git 
      

       It would be better to use a pattern like this one:

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

       

       

            markewaite Mark Waite
            flabrie Francis Labrie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: