[ https://issues.apache.org/jira/browse/SCM-839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15766754#comment-15766754 ]
Jacek Gebal commented on SCM-839: --------------------------------- What I've figured so far, is that the command `git diff --cache ` accepts only one branch/version paramete. The plugin however is passing both start and end version to that command. This makes the command fail. > scm:diff with GIT doesn't work > ------------------------------ > > Key: SCM-839 > URL: https://issues.apache.org/jira/browse/SCM-839 > Project: Maven SCM > Issue Type: Bug > Components: maven-scm-provider-gitexe > Affects Versions: 1.9.5 > Environment: Apache Maven 3.3.9 > (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T16:41:47+00:00) > Maven home: C:\Users\a565281\apache-maven-3.3.9\bin\.. > Java version: 1.8.0_92, vendor: Oracle Corporation > Java home: C:\Program Files\Java\jdk1.8.0_92\jre > Default locale: en_US, platform encoding: Cp1252 > OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos" > Reporter: Jacek Gebal > > When executing the maven command as below, I get an exception. > mvn scm:diff -DstartScmVersion=master -DstartScmVersionType=branch > -DendScmVersion=HEAD -DendScmVersionType=branch > Also the examples in documentation for mvn:diff do not seem to be OK: > https://maven.apache.org/components/scm/maven-scm-plugin/examples/scm-advance-features.html -- This message was sent by Atlassian JIRA (v6.3.4#6332)