| Summary: | Shallow clone doesn't work | ||
|---|---|---|---|
| Product: | Community | Reporter: | Dennis Huebner <dennis.huebner> |
| Component: | Git | Assignee: | Eclipse Webmaster <webmaster> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | thanh.ha |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Mac OS X | ||
| Whiteboard: | |||
|
Description
Dennis Huebner
Looks like to shallow clone a repo you need write access to the repo. When we enable Gerrit for your repos we transfer ownership to the gerrit user.
So the way to get around this is to use the Gerrit URLs if you want to shallow clone.
I tried with this command and worked for me:
git clone ssh://git.eclipse.org:29418/tmf/org.eclipse.xtext.git --depth 1
(In reply to Dennis Huebner from comment #0) > To reduce the space used on our HIPP and speed up the cloning of our > repository (~800Mb) I've tried to use the shallow clone. This fails with the > following exception: > I would recommend you shallow clone more than 1 depth. Travis CI uses 50 as it's default depth which I think should work fine for most cases. There are edge cases which could cause build issues when you have a really low depth. Such as if you are using polling based build triggers and multiple changes are happening rapidly, your build may miss a few commits. https://git.eclipse.org/r/tmf/org.eclipse.xtext works for me, thanks. |