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

Chris Graham commented on SCM-656:
----------------------------------

Actually, getting back to the issue with the broken URL's, there is a better 
way, one that was already there:

So, change:

        scmRepository = getScmManager().makeScmRepository( "scm:git:file:///" + 
repo.getAbsolutePath() );

To:

        scmRepository = getScmManager().makeScmRepository( 
GitScmTestUtils.getScmUrl(repo, "git") );

And you've got effectively the same thing. And, it now covers the cygwin stuff 
as well (so I'm assuming that it's better tested).

                
> Building maven-scm-1.6 requires a native install of git.
> --------------------------------------------------------
>
>                 Key: SCM-656
>                 URL: https://jira.codehaus.org/browse/SCM-656
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-git
>    Affects Versions: 1.6
>         Environment: Windows XP
> maven 2.2.1
>            Reporter: Chris Graham
>            Assignee: Olivier Lamy
>             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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to