["Solved"] Commit in submodule wants to remove and re-add all files with folder appended a [message #997562] |
Tue, 08 January 2013 10:24 |
Mads Baggesen Messages: 3 Registered: January 2013 |
Junior Member |
|
|
Hi,
I have a setup with one master project (lets call it PROJ) and a list of submodules. I have checked them all out by cloning the master project and selecting the option to include submodules. I now have the structure:
workspace/PROJ
workspace/PROJ/ABC
workspace/PROJ/ABC/a.txt
workspace/PROJ/ABC/b.txt
workspace/PROJ/ABC/c.txt
workspace/PROJ/XYZ
workspace/PROJ/WWW
Now my problem is that when I change /ABC/a.txt and does a commit on the ABC submodule from within Eclipse get the following "changed" list:
Removed a.txt
Removed b.txt
Removed c.txt
Untracked /ABC/a.txt
Untracked /ABC/b.txt
Untracked /ABC/c.txt
Can someone give me hints on why this happens, and maybe a way to get past it.
If i go to the console and does a "git status" in workspace/PROJ/ABC/ I get this:
# Not currently on any branch.
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: a.txt
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# Foo/
Foo is a directory which is not and should not be versioned.
Thank you in advance for any help, it will be greatly appreciated. Please tell me if you need any additional information.
Mads
[Updated on: Tue, 22 January 2013 13:46] Report message to a moderator
|
|
|
|
Re: Commit in submodule wants to remove and re-add all files with foldername appended as prefix [message #1002388 is a reply to message #1002253] |
Fri, 18 January 2013 13:46 |
R Shapiro Messages: 386 Registered: June 2011 |
Senior Member |
|
|
EGit support for subdmodules is still an at early stage. It works well if you plan to use the submodules as a kind of updateable library that you don't modify yourself, in other words if someone else is maintaining this repository.
If you're the one who's responsible for maintaining such a repository, by modifying and updating submodules, EGit will not be very helpful, at least not so far. You'll have to do some operations with command-line Git (commit, for instance), status decorations won't be correct, the Git Staging view won't be correct, etc.
[Updated on: Sat, 19 January 2013 14:30] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03188 seconds