Skip to main content



      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 00:06 Go to next message
Eclipse UserFriend
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.,

A/java/Foo.java
B/java/Foo.java
C/java/Foo.java
java/Foo.java

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?

Thanks,

RB
Re: Problem with multiple projects sharing a repository. [message #658914 is a reply to message #658855] Thu, 10 March 2011 07:44 Go to previous message
Eclipse UserFriend
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.

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=35973
Previous Topic:Passphrase fails when using SourceForge
Next Topic:Where to clone repo?
Goto Forum:
  


Current Time: Wed Jul 23 22:27:16 EDT 2025

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

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

Back to the top