Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.1
-
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
- links to