-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Premature EOF repository error #213
Comments
In this case I would suggest using native git. It tends to work more reliably, and the jgit that is in there is mostly to make it easier to drop install and get things running. For larger repositories this is generally not the best approach. You can do so by setting Let me know how this works for you. |
Hello @boyter , thanks for replying. Even setting to use_system_git to true with a appropriate path, getting this error:
Its it for Http, even when entering the ssh url while adding the repo but this time Auth error has been throwen. Setting this property to true is even makes no any improvement and while i clone the repo from the remote, i get same error by native git also in command interpreter. Is there any other approach to get rid of fetching all of the git history? Our repo is consisting of %80 size of .git folder especially the history. |
I have an idea, by using searchcode api. I want to write a script by python to schedule shallow clone and depth 1 fetches regularly to let searchcode index repos by native filesystem. What do you think of this idea? |
Seems odd you are still getting a jgit error in this case though. Did you restart searchcode-server after making the It is interesting that you get the same error with git command line. What you have suggested would work. You could control the checkout/clone yourself and set searchcode-server to use native file system and index that. It would then update it based on file times and work as you would expect. Of course it means searchcode is no longer keeping the repository in sync for you but that might not be an issue. |
I have a Xcode project repository in gerrit which consisting of 11 GB. While cloning it with searchcode i encountering the error like: premature EOF repository. Does anybody encounter error like this? Should i edit the project to clone with ssh protocol? I've researched about this error and people suggest to shallow clone, but no support by jgit/egit. Thanks in advance
The text was updated successfully, but these errors were encountered: