Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346816 - GUI to download and update Submodules is missing
Summary: GUI to download and update Submodules is missing
Status: CLOSED DUPLICATE of bug 314853
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 0.12   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-22 14:36 EDT by Joerg Mising name CLA
Modified: 2011-05-23 07:23 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Mising name CLA 2011-05-22 14:36:20 EDT
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.
Comment 1 Chris Aniszczyk CLA 2011-05-22 19:38:24 EDT
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 ***
Comment 2 Joerg Mising name CLA 2011-05-23 07:23:40 EDT
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?