Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » JGit(JGit SubModule)
JGit [message #1826920] Mon, 04 May 2020 15:38 Go to next message
Thea Words is currently offline Thea WordsFriend
Messages: 3
Registered: May 2020
Junior Member
This looks really simple and I don't have experience using JGit.
I am trying to open/treat a Submodule which was added to a parent git that exists already.
There is the SubModuleWalk class that walks all submodules found in the tree, more like the parent git.
When adding a submodule named "TestSubModule" in my parent git, the TestSubmodule creates a .git file that contains : gitdir:../.git/modules/TestSubModule.
Now, my question, is there a way to treat this .git file normally like the parent .git directory?
How can you open the submodule like you would open a parent git?
Re: JGit [message #1827512 is a reply to message #1826920] Sat, 16 May 2020 09:18 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
Get the submodule repository from the submodule walk by calling SubmoduleWalk.getRepository()
Re: JGit [message #1827997 is a reply to message #1827512] Thu, 28 May 2020 19:16 Go to previous message
Thea Words is currently offline Thea WordsFriend
Messages: 3
Registered: May 2020
Junior Member
How is this going to treat the .git file as a working repository?
Previous Topic:Uexpected CRLF conversion on clone
Next Topic:Behavior of JGit regarding links?
Goto Forum:
  


Current Time: Thu Apr 25 11:28:34 GMT 2024

Powered by FUDForum. Page generated in 0.02854 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top