Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-911

release plugin forming incorrect git clone command

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.5.2
    • None
    • Git
    • None

    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

      [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

      Attachments

        Activity

          People

            Unassigned Unassigned
            sandyzden sandyzden
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: