nodegit / nodegit/nodegit

Clone Error The filename or extension is too long

Open
#1,739 4 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

I am trying to clone repo. It was working fine but for some other repo when file name is too long it's giving below error:

error:
/DoesNotExistImageInImageIntegrationTest.java': The filename or extension is t
oo long.
errno: -4, errorFunction: 'Clone.clone

how can we set git config --system core.longpaths true through nodegit ?

Thanks,
Pravin

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 Clone.clone entry point mentioned in the report and review how NodeGit exposes Git configuration during cloning. Reproduce the long-path failure described for the filename shown, then determine whether core.longpaths can be configured through the existing API. Done means the supported configuration path is implemented or clearly documented and the long-path clone behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, javascript, nodejs
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.