Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Problem with multiple projects sharing a repository.
Problem with multiple projects sharing a repository. [message #658855] Thu, 10 March 2011 05:06 Go to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: March 2011
Junior Member
I have multiple projects (A, B, C) that share the same git repository. Each project has a build path link to the same java source directory, and declare different inclusion patterns (e.g., **/client/**, **/server/**, "**/shared/**").
The projects also have (acyclic) dependencies: e.g., A -> B and B -> C.

The problem is when I modify a file and commit, the file shows up multiple times in the commit dialog. E.g.,


E.g., each project seems to think it has a subdirectory "java" due to the shared source folder on the build path.

is there a better way to structure projects with a shared source tree and dependencies?


Re: Problem with multiple projects sharing a repository. [message #658914 is a reply to message #658855] Thu, 10 March 2011 12:44 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1213
Registered: July 2009
Senior Member
Looks like you are using nested Eclipse projects. This is not properly supported by Eclipse and EGit doesn't try to workaround these problems. So avoid that and you shouldn't see any duplicate resources anymore. They come from the Eclipse resource model so the root cause is the incorrect handling of nested projects, see bug [1] for the details.

Previous Topic:Passphrase fails when using SourceForge
Next Topic:Where to clone repo?
Goto Forum:

Current Time: Sun Oct 02 23:02:56 GMT 2022

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

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

Back to the top