You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mark Struberg (JIRA)" <ji...@codehaus.org> on 2010/08/21 18:22:32 UTC

[jira] Closed: (MRELEASE-590) release:perform fails on Git repository relative path

     [ http://jira.codehaus.org/browse/MRELEASE-590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg closed MRELEASE-590.
----------------------------------

    Resolution: Not A Bug
      Assignee: Mark Struberg

checking out from a relative path is not supported by our GIT provider. And checking out from the present working directory makes no sense at all.

> release:perform fails on Git repository relative path
> -----------------------------------------------------
>
>                 Key: MRELEASE-590
>                 URL: http://jira.codehaus.org/browse/MRELEASE-590
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: perform
>    Affects Versions: 2.0
>         Environment: MacOS X 10.6.4, Maven 2.1.0
>            Reporter: Andrey Paramonov
>            Assignee: Mark Struberg
>         Attachments: pom.xml
>
>
> Running release:perform on relative Git path
> {code}
> <scm>
>     <connection>scm:git:file://.</connection>
>     <developerConnection>scm:git:file://.</developerConnection>
>     <url>scm:git:file://.</url>
> </scm>
> {code}
> fails with the error
> {code}
> [INFO] [release:perform]
> [INFO] Checking out the project to perform the release ...
> [INFO] Executing: /bin/sh -c cd /Users/andrey/projects/demos/gitmaven/target && git clone file://. /Users/andrey/projects/demos/gitmaven/target/checkout
> [INFO] Working directory: /Users/andrey/projects/demos/gitmaven/target
> [ERROR] The git-clone command failed.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Unable to checkout from SCM
> Provider message:
> The git-clone command failed.
> Command output:
> fatal: '.' does not appear to be a git repository
> fatal: The remote end hung up unexpectedly
> {code}
> It works fine for absolute path though.
> Also to note, when I run the same clone command in the shell, it works without any problem
> {code}
> $ git clone file://. /Users/andrey/projects/demos/gitmaven/target/checkout
> Initialized empty Git repository in /Users/andrey/projects/demos/gitmaven/target/checkout/.git/
> remote: Counting objects: 100, done.
> remote: Compressing objects: 100% (89/89), done.
> remote: Total 100 (delta 38), reused 0 (delta 0)
> Receiving objects: 100% (100/100), 9.52 KiB, done.
> Resolving deltas: 100% (38/38), done.
> {code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira