maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1061018 - /maven/scm/trunk/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/checkin/GitCheckInCommand.java
Date Wed, 19 Jan 2011 21:47:06 GMT
Author: olamy
Date: Wed Jan 19 21:47:06 2011
New Revision: 1061018

URL: http://svn.apache.org/viewvc?rev=1061018&view=rev
Log:
[SCM-574] GitCheckInCommand fails on empty changed files list
Submitted by Andrey Paramonov

Modified:
    maven/scm/trunk/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/checkin/GitCheckInCommand.java

Modified: maven/scm/trunk/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/checkin/GitCheckInCommand.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/checkin/GitCheckInCommand.java?rev=1061018&r1=1061017&r2=1061018&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/checkin/GitCheckInCommand.java
(original)
+++ maven/scm/trunk/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/checkin/GitCheckInCommand.java
Wed Jan 19 21:47:06 2011
@@ -113,6 +113,11 @@ public class GitCheckInCommand
                             "track)" );
                 }
             }
+            
+            if ( statusConsumer.getChangedFiles().isEmpty() )
+            {
+                return new CheckInScmResult( null, statusConsumer.getChangedFiles() );
+            }
 
             Commandline clCommit = createCommitCommandLine( repository, fileSet, messageFile
);
 



Mime
View raw message