nodegit / nodegit/nodegit

`git.Clone()` throwing "Early EOL" error

Open
#555 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5.8k
Forks
704
PR merge metrics
No merged PRs in 30d

Description

Hey!

These three lines of code result in an error saying only "Early EOL" being thrown: https://github.com/Lostmyname/parker-pr-bot/blob/master/src/get-file.js#L28-L30

The code works locally on my machine, but not on the server I'm trying to deploy my app to. The git cli works, though, and my SSH key is correct.

Any ideas? I'm on gitter if you want to talk about it here, and I'll document it here so that it's searchable.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the three lines in src/get-file.js at lines 28-30 and reproduce the git.Clone call on the deployment server. Compare its NodeGit, Git CLI, SSH, and server environment with the working local setup, then document the cause and a reliable resolution for the Early EOL error.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, javascript, node.js
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.