You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2015/05/14 22:44:00 UTC
[jira] [Updated] (MRELEASE-911) release plugin forming incorrect
git clone command
[ https://issues.apache.org/jira/browse/MRELEASE-911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte updated MRELEASE-911:
------------------------------------
Description:
git-exe plugin completely ignores the branch parameter and fails in cloning the repository during {{release:perform}}
e.g. git clone --branch <git url> <working dir> this causes it to determine the <working dir> as the branch parameter and failing.
Below is the error message
{noformat}
[ERROR] The git-clone command failed.
[ERROR] fatal: repository '<working dir>/target/checkout' does not exist
{noformat}
A bit fiddling on the source code i found out
{code}
if ( version != null && ( version instanceof ScmBranch ) )
{
cl.createArg().setValue( "--branch" );
cl.createArg().setValue( version.getName() );
}
{code}
it needed version number, but i was not able to figure how it passed from Main Mojo to this class
was:
git-exe plugin completely ignores the branch parameter and fails in cloning the repository during release:perform
e.g. git clone --branch <git url> <working dir> this causes it to determine the <working dir> as the branch parameter and failing.
Below is the error message
[ERROR] The git-clone command failed.
[ERROR] fatal: repository '<working dir>/target/checkout' does not exist
A bit fiddling on the source code i found out
if ( version != null && ( version instanceof ScmBranch ) )
{
cl.createArg().setValue( "--branch" );
cl.createArg().setValue( version.getName() );
}
it needed version number, but i was not able to figure how it passed from Main Mojo to this class
> release plugin forming incorrect git clone command
> --------------------------------------------------
>
> Key: MRELEASE-911
> URL: https://issues.apache.org/jira/browse/MRELEASE-911
> Project: Maven Release Plugin
> Issue Type: Bug
> Components: Git
> Affects Versions: 2.5.2
> Reporter: sandyzden
>
> git-exe plugin completely ignores the branch parameter and fails in cloning the repository during {{release:perform}}
> e.g. git clone --branch <git url> <working dir> this causes it to determine the <working dir> as the branch parameter and failing.
> Below is the error message
> {noformat}
> [ERROR] The git-clone command failed.
> [ERROR] fatal: repository '<working dir>/target/checkout' does not exist
> {noformat}
> A bit fiddling on the source code i found out
> {code}
> if ( version != null && ( version instanceof ScmBranch ) )
> {
> cl.createArg().setValue( "--branch" );
> cl.createArg().setValue( version.getName() );
> }
> {code}
> it needed version number, but i was not able to figure how it passed from Main Mojo to this class
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)