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

gitexe checkIn() fails due to Windows command line length limitation

    XMLWordPrintableJSON

Details

    • Patch

    Description

      Hello,

      I noticed that for a project with a large amount of pom files the prepare command of the release plugin fails when it tries to git add all of the poms.

      The failure happens because the SCM plugin attempts to git add all of the files at once which fails on Windows machines due to the command line length limitation.

      I have written a small fix and created a pull request
      https://github.com/apache/maven-scm/pull/30

      Basicaly, with the fix, the command git add iterates on all files rather than adding them in one command. The fix was already present in the code in
      the GitAddCommand.java. However there was one more place in the code with the bug.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              rado.murin Radovan Murin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: