Skip to main content

All Questions

1 vote
0 answers
64 views

Removing a git submodule without a path

I somehow have a git submodule without a path, which I would like to remove. Looking into the submodules of my codebase, there is some weird config: [submodule "a/path"] path = a/path ...
Tom's user avatar
  • 93
1 vote
1 answer
704 views

How to use variables of git submodule foreach in gitpython

Using gitpython, I would like to use repo.git.submodule('foreach', …) and get the variables available such as name, sm_path, displaypath, sha1 and toplevel as defined in the git documentation. I ...
Denis Rouzaud's user avatar
12 votes
1 answer
4k views

GitPython: how to commit updated submodule

I have been at this for hours now, and although I have a feeling I'm close I can't seem to figure this out. I'm trying to make a script that takes a git repository, updates a submodule in that ...
Bob Vork's user avatar
  • 2,947