Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-739

Release Plugin: Use "git --depth 1" When Checking Out

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.1
    • 1.10.0
    • None

    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 will:

      • significantly improve performance on larger repositories and/or with a lot of history
      • and reduce I/O on repositories with a lot of history.

      Attachments

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              znerd Ernst de Haan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: