Add option to use shallow clone to save disk space when you just want to access the latest version of a repository.#81
Add option to use shallow clone to save disk space when you just want to access the latest version of a repository.#81jsenko wants to merge 9 commits intojenkinsci:masterfrom jsenko:master
Conversation
|
Jenkins » git-plugin #52 UNSTABLE |
|
I am new to Jenkins, what is the best way to disable merging and git publisher (cannot merge and push when using shallow clone), when shallow clone is being used? |
|
reading http://blogs.gnome.org/simos/2009/04/18/git-clones-vs-shallow-git-clones/ |
src/main/webapp/useShallowClone.html
Outdated
There was a problem hiding this comment.
Should explain the feature from a user point of view, not about implementation details to use --depth.
|
Jenkins » git-plugin #53 UNSTABLE |
|
That is odd. All tests pass when i build this on my computer. |
|
Jenkins » git-plugin #57 UNSTABLE |
|
I can confirm, that the tests pass fine locally. It seems Buildhive has some problem with creating file, most of the tests fail on assertion which checks whether newly created file exists. Fails for other pull requests (e.g. pull #82) |
|
merged |
|
Could it be that this is broken? This options doesn't seem to work for us. Our checkouts are still very very large. Using --depth=1 locally works great. We use the latest Jenkins and versions of the plugin. |
Cloning git repositories can cause high load on git server as well as on network. If would be nice to have an option in git plugin to perform only shallow clone. It could significantly reduce amount of transfered data.