maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Paramonov (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MRELEASE-590) release:perform fails on Git repository relative path
Date Sun, 22 Aug 2010 17:29:42 GMT

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

Andrey Paramonov closed MRELEASE-590.
-------------------------------------

       Resolution: Not A Bug
    Fix Version/s: 2.0

Using *localCheckout* parameter fixed the problem

{code}
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-release-plugin</artifactId>
    <configuration>
        <localCheckout>true</localCheckout>
    </configuration>
</plugin>
{code}

> 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
>             Fix For: 2.0
>
>         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

        

Mime
View raw message