Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Confirmation of possible bug please?
Confirmation of possible bug please? [message #653431] Wed, 09 February 2011 17:35 Go to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
Possible bug in eGit 0.11.0.201102081906.

Summary - Eclipse Projects not really added to the same git repo if the
project names use same namespace prefix.

Steps to reproduce:

1. Create a folder C:\test

2. In Eclipse create three Java projects in that folder with project
names "com.foo.project", "com.foo.project.old", and
"com.foo.project.tests" in folders with the same folder names as the
project names, thus:

C:\test
|-----com.foo.project
|-----com.foo.project.old
|-----com.foo.project.tests

3. In Eclipse Project Explorer select all 3 projects and choose
"Team->Share Project->Git"

4. In the wizard select all 3 projects and "Create Repository" so that
the .git repo will be created in the "C:\test" folder.

5. Click "Finish".

In Package Explorer notice how the "com.foo.project.old" has no git
decorations. Also if you attempt to "Commit" this project none of the
project's files show up in the Commit dialog. It's as if it has not been
shared.

Anyone confirm this?
Re: Confirmation of possible bug please? [message #653432 is a reply to message #653431] Wed, 09 February 2011 17:52 Go to previous messageGo to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
On 09/02/2011 17:35, Phillipus wrote:
> Possible bug in eGit 0.11.0.201102081906.
>
> Summary - Eclipse Projects not really added to the same git repo if the
> project names use same namespace prefix.
>
> Steps to reproduce:
>
> 1. Create a folder C:\test
>
> 2. In Eclipse create three Java projects in that folder with project
> names "com.foo.project", "com.foo.project.old", and
> "com.foo.project.tests" in folders with the same folder names as the
> project names, thus:
>
> C:\test
> |-----com.foo.project
> |-----com.foo.project.old
> |-----com.foo.project.tests
>
> 3. In Eclipse Project Explorer select all 3 projects and choose
> "Team->Share Project->Git"
>
> 4. In the wizard select all 3 projects and "Create Repository" so that
> the .git repo will be created in the "C:\test" folder.
>
> 5. Click "Finish".
>
> In Package Explorer notice how the "com.foo.project.old" has no git
> decorations. Also if you attempt to "Commit" this project none of the
> project's files show up in the Commit dialog. It's as if it has not been
> shared.
>
> Anyone confirm this?

A further test using this modified folder structure and project names of:

C:\test
|-----com.foo.project
|-----com.foo.project.old
|-----com.foo.project.tests.old

And the result is that only "com.foo.project" shows as being in the git
repo.
Re: Confirmation of possible bug please? [message #653438 is a reply to message #653432] Wed, 09 February 2011 18:29 Go to previous messageGo to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
On 09/02/2011 17:52, Phillipus wrote:
> On 09/02/2011 17:35, Phillipus wrote:
>> Possible bug in eGit 0.11.0.201102081906.
>>
>> Summary - Eclipse Projects not really added to the same git repo if the
>> project names use same namespace prefix.
>>
>> Steps to reproduce:
>>
>> 1. Create a folder C:\test
>>
>> 2. In Eclipse create three Java projects in that folder with project
>> names "com.foo.project", "com.foo.project.old", and
>> "com.foo.project.tests" in folders with the same folder names as the
>> project names, thus:
>>
>> C:\test
>> |-----com.foo.project
>> |-----com.foo.project.old
>> |-----com.foo.project.tests
>>
>> 3. In Eclipse Project Explorer select all 3 projects and choose
>> "Team->Share Project->Git"
>>
>> 4. In the wizard select all 3 projects and "Create Repository" so that
>> the .git repo will be created in the "C:\test" folder.
>>
>> 5. Click "Finish".
>>
>> In Package Explorer notice how the "com.foo.project.old" has no git
>> decorations. Also if you attempt to "Commit" this project none of the
>> project's files show up in the Commit dialog. It's as if it has not been
>> shared.
>>
>> Anyone confirm this?
>
> A further test using this modified folder structure and project names of:
>
> C:\test
> |-----com.foo.project
> |-----com.foo.project.old
> |-----com.foo.project.tests.old
>
> And the result is that only "com.foo.project" shows as being in the git
> repo.
>

Filed it anyway - https://bugs.eclipse.org/bugs/show_bug.cgi?id=336744
Re: Confirmation of possible bug please? [message #653742 is a reply to message #653438] Thu, 10 February 2011 22:38 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
This is due to lack of proper support for nested projects in Eclipse 3.6. Funny problems arise from this like multiple resources for one file are created which provokes all kinds of problems. See bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=35973
Re: Confirmation of possible bug please? [message #653748 is a reply to message #653742] Thu, 10 February 2011 22:46 Go to previous message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
On 10/02/2011 22:38, Matthias Sohn wrote:
> This is due to lack of proper support for nested projects in Eclipse
> 3.6. Funny problems arise from this like multiple resources for one file
> are created which provokes all kinds of problems. See bug
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=35973

No, it's turned out to be stranger than that, read the unfolding story
in https://bugs.eclipse.org/bugs/show_bug.cgi?id=336744
Previous Topic:why are some files "staged" other committed ?
Next Topic:.git Folder Visible in Navigator
Goto Forum:
  


Current Time: Thu Apr 18 07:37:54 GMT 2024

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

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

Back to the top