libgit2 / libgit2/libgit2

git_clone() not cloning submodules

Open
#5,021 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
10.6k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

git_clone (https://libgit2.org/libgit2/#HEAD/group/clone) is not cloning everything in the repo (the submodules). I already posted this question in stack overflow: https://stackoverflow.com/questions/55129134/how-to-clone-repo-along-with-submodules-in-libgit2
I have not received any feedback to this.

Is this a limitation of the library or am I missing something?

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 git_clone() API documentation linked in the issue and trace how cloning handles repository contents. Determine whether submodule checkout is supported or missing, then verify the expected behavior against the linked Stack Overflow question; done means the limitation or required change is clearly established.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, git
Domain
devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.