← Back to team overview

dulwich-users team mailing list archive

Re: submodules support

 

Hi,

On Sun, Sep 16, 2012 at 01:27:34PM -0700, Mark Mikofski wrote:
> Are git submodules supported by dulwich? I suppose if I know the
> exact plumbing in `git-submodule-add` and `git-submodule-update` I
> should be able to replicate it in dulwich.
You should be able to set and read submodules directly with the existing
objects.

> Also (I realize this is a git issue, not dulwich, but humor me as my
> goal is to use submodules with dulwich), I'm unclear why
> git-submodule is needed, can I not just clone a git repo into a git
> repo? The superproject sees it as files right? Within the
> subproject, I can use git as normal, seems somehow easier and better
> than using git-submodule.
Yes, you can. submodules just make it easier for others who have a
copy of the containing repository to check out the contained
repositorie(s).

Cheers,

Jelmer


References