Community
Participate
Working Groups
I have a repository, where the content of some folders is included as a submodule. We have lines like these in .gitmodules: [submodule "typo3/sysext/version"] path = typo3/sysext/version url = git://git.typo3.org/TYPO3v4/CoreProjects/workspaces/version.git I have cloned the repository and added it to the repository view in Eclipse. - Then I "Fetch" a change and a new branch is created. - But when I try to "Checkout" that branch, this does not work. I get the following error: Checkout Conflicts: "The files below have uncommited changes, which would be lost when checking out "(branch name)". Please either add the changes to the repository by creating or amending a commit with these changes or dispose these changes by resetting your current HEAD." Then follows a list of the folders, which should be included as submodules, but are missing. A way to initialize the local configuration file and update the submodule in EGit is missing. On the shell that would be: git submodule init git submodule update I use Eclipse 3.6 Service Release 2 and EGit nightly from May 20th 2011.
Submodules aren't supported by JGit yet and won't be for 1.0 This is a dupe of bug 314853. *** This bug has been marked as a duplicate of bug 314853 ***
Hi Chris, thanks for the answer. That error message (uncommitted changes) makes it impossible for me to Checkout the new branch. Can you tell me how I can prevent the message? Or with other words: How can I use the branch?