Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-921

maven-scm-provider-jgit not handling relative paths on Windows Server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.11.1
    • None
    • None

    Description

      Running Maven release plugin with jgit on Windows Server, the pom.xml files in subfolders would not get committed.  The main pom.xml file would.  Upon investigation it appears that Maven passed in absolute paths to the subfolders starting with C:\ and JGIT's relativize only works correctly for c:\ (note capitalization difference).  So I patched maven-scm-provider-jgit to lowercase the first letter of an absolute path if it detects the path has ":\" at index 1 and it appears to be working now.

      Attachments

        1. SCM-921.patch
          1 kB
          Alex Harui

        Activity

          People

            Unassigned Unassigned
            aharui Alex Harui
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: