Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Switching branches leaves folders that should be gone!
Switching branches leaves folders that should be gone! [message #758598] Wed, 23 November 2011 20:13 Go to next message
Cameron Missing name is currently offline Cameron Missing name
Messages: 6
Registered: November 2011
Junior Member
I am new to git so I may be missing some critical detail or step that I should perform.

1. Be in the local master branch but also have a local branch "test" created off master
2. In my eclipse I have one repository under git control
3. Create a new folder (project/portlet/whatever) in the project and put some files in it
4. Immediatly add+commit your changes
5. You can see the icon by your folder is the source control icon
6. Switch to test
7. See in eclipse that your folder is still there except has a ? on the icon (in master it has the source control icon)
-- Already broken at this point, shouldn't it be gone? --
8. Now you have a rogue folder (with its contents) in your test branch that shouldn't be there. It will be there forever unless you delete it manually or merge from master.
-- Now for the reverse --
9. Now create a new folder/project/portlet in your test branch with some files
10. Immediatly add+commit it
11. Switch back to the master branch
12. Now you have the rogue folder from your test branch in master. It has the ? icon by it.

I am about to install msysgit and tortoisegit and see if they behave the same way. I am on Eclispe Indigo, which includes EGit with it.

[Updated on: Wed, 23 November 2011 21:01]

Report message to a moderator

Re: Switching branches leaves folders that should be gone! [message #758807 is a reply to message #758598] Thu, 24 November 2011 15:43 Go to previous message
Stefan Lay is currently offline Stefan Lay
Messages: 340
Registered: July 2009
Senior Member
> 7. See in eclipse that your folder is still there except has a ? on the icon (in
> master it has the source control icon)
> -- Already broken at this point, shouldn't it be gone? --

Yes, it should be gone. I cannot reproduce that with the latest nightly build and with Indigo SR1.

Do you see any messages in the Error Log? Do you see that always in different projects?
Previous Topic:git pull command error
Next Topic:workaround for the broken aspect of refs/remotes
Goto Forum:
  


Current Time: Mon Sep 22 12:22:15 GMT 2014

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

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