Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.2.2
-
None
-
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.