[ 
https://issues.apache.org/jira/browse/SCM-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17963121#comment-17963121
 ] 

ASF GitHub Bot commented on SCM-797:
------------------------------------

jira-importer opened a new issue, #1020:
URL: https://github.com/apache/maven-scm/issues/1020

   **[Radovan 
Murin](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=rado.murin)**
 opened 
**[SCM-797](https://issues.apache.org/jira/browse/SCM-797?redirect=false)** and 
commented
   
   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.
   
   
   ---
   
   **Affects:** 1.9.4
   
   **Issue Links:**
   - [SCM-714](https://issues.apache.org/jira/browse/SCM-714) mvn 
release:prepare fails if the command line is too long on windows
    (_**"is duplicated by"**_)
   - [MRELEASE-1026](https://issues.apache.org/jira/browse/MRELEASE-1026) 
release:perform issues a git add with more than 27000 bytes.
    (_**"is depended upon by"**_)
   
   **Remote Links:**
   - [GitHub Pull Request #49
   ](https://github.com/apache/maven-scm/pull/49)
   




> gitexe checkIn() fails due to Windows command line length limitation
> --------------------------------------------------------------------
>
>                 Key: SCM-797
>                 URL: https://issues.apache.org/jira/browse/SCM-797
>             Project: Maven SCM (Moved to GitHub Issues)
>          Issue Type: Bug
>          Components: maven-scm-provider-gitexe
>    Affects Versions: 1.9.4
>         Environment: Windows
>            Reporter: Radovan Murin
>            Assignee: Michael Osipov
>            Priority: Critical
>              Labels: Maven, SCM
>             Fix For: 1.10.0
>
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to