You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ernst de Haan (JIRA)" <ji...@codehaus.org> on 2013/11/05 14:59:52 UTC
[jira] (MRELEASE-853) Use "git --depth 1" When Checking Out
[ https://jira.codehaus.org/browse/MRELEASE-853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ernst de Haan updated MRELEASE-853:
-----------------------------------
Summary: Use "git --depth 1" When Checking Out (was: Use "git --depth 1"Â When Checking Out)
> Use "git --depth 1" When Checking Out
> -------------------------------------
>
> Key: MRELEASE-853
> URL: https://jira.codehaus.org/browse/MRELEASE-853
> Project: Maven Release Plugin
> Issue Type: New Feature
> Components: Git
> Affects Versions: 2.2.2
> Environment: Maven 3.1.1
> Reporter: Ernst de Haan
>
> *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: {code:none}git clone URL{code}
> However, git supports checking out only the latest version of the code base, using this command: {code:none}git clone --depth 1 URL{code}
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira