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

Use "git --depth 1" When Checking Out

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.2.2
    • None
    • Git
    • None
    • Maven 3.1.1

    Description

      Executive summary: Please use --depth 1 when checking out from a git repository.

      Currently when doing mvn release:prepare release:perform, the git checkout step takes a significant amount of time.

      During the git checkout it appears to not only check out the correct version of the code, but also all history, as would be done with a regular:

      git clone URL

      However, git supports checking out only the latest version of the code base, using this command:

      git clone --depth 1 URL

      For the purpose of the Maven Release Plugin, that should be sufficient, as far as I can see.

      Changing the plugin to use --depth 1 would significantly improve performance and reduce I/O on repositories with a lot of history.

      Attachments

        Activity

          People

            Unassigned Unassigned
            znerd Ernst de Haan
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: