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

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

jira-importer commented on issue #866:
URL: https://github.com/apache/maven-scm/issues/866#issuecomment-2964630249

   **[Chris 
Graham](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=chrisgwarp)**
 commented
   
   Opps. I'm not sure if this will work:
   
       if ( !isSystemCmd( GitScmTestUtils.GIT_COMMAND_LINE ) )
       {
           System.err.println( "'" + GitScmTestUtils.GIT_COMMAND_LINE + "' is 
not a system command. Ignored "
               + getName() + "." );
           return;
       }
   
   because on my system, I have git.cmd in the path, not git.exe.
   
   So it incorrectly thinks that git is not available. (When it is).
   
   When I've added the git bin dir into the path (where git.exe lives), the 
test successfully runs - it does not erroneously skip the test.
   




> Building maven-scm-1.6 requires a native install of git.
> --------------------------------------------------------
>
>                 Key: SCM-656
>                 URL: https://issues.apache.org/jira/browse/SCM-656
>             Project: Maven SCM (Moved to GitHub Issues)
>          Issue Type: Bug
>          Components: maven-scm-provider-gitexe
>    Affects Versions: 1.6
>         Environment: Windows XP
> maven 2.2.1
>            Reporter: Chris Graham
>            Assignee: Olivier Lamy
>            Priority: Major
>             Fix For: 1.7
>
>         Attachments: git-no-exe.patch, git-test-fail.patch
>
>
> Check out a fresh copy of maven-scm-1.6 and attempt to build via "mvn clean 
> install" and it fails due to a missing native git.exe not being present.
> Running 
> org.apache.maven.scm.provider.git.gitexe.command.checkout.GitExeCheckOutCommandNoBranchTest
> [INFO] Executing: cmd.exe /X /C "git clone 
> C\Workspaces\\maven-scm-1.6\maven-scm-providers\maven-scm-providers-git\maven-scm-provider-gitexe\src\test\resources\repository_no_branch
>  
> C:\Workspaces\maven-scm-1.6\maven-scm-providers\maven-scm-providers-git\maven-scm-provider-gitexe\target\checkin-nobranch"
> [INFO] Working directory: 
> C:\Workspaces\maven-scm-1.6\maven-scm-providers\maven-scm-providers-git\maven-scm-provider-gitexe\target
> ----------------------------------------------------------------------
> Provider message
> ----------------------------------------------------------------------
> The git-clone command failed.
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> Command output
> ----------------------------------------------------------------------
> 'git' is not recognized as an internal or external command,
> operable program or batch file.
> ----------------------------------------------------------------------
> [INFO] Executing: cmd.exe /X /C "git clone 
> C\Workspaces\maven-scm-1.6\maven-scm-providers\maven-scm-providers-git\maven-scm-provider-gitexe\src\test\resources\repository_no_branch
>  
> C:\Workspaces\maven-scm-1.6\maven-scm-providers\maven-scm-providers-git\maven-scm-provider-gitexe\target\checkin-nobranch"
> [INFO] Working directory: 
> C:\Workspaces\maven-scm-1.6\maven-scm-providers\maven-scm-providers-git\maven-scm-provider-gitexe\target
> ----------------------------------------------------------------------
> Provider message
> ----------------------------------------------------------------------
> The git-clone command failed.
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> Command output
> ----------------------------------------------------------------------
> 'git' is not recognized as an internal or external command,
> operable program or batch file.



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

Reply via email to