| How can I clear the repository cache? [SOLVED] [message #676869] |
Mon, 06 June 2011 15:34  |
petrocket Messages: 2 Registered: June 2011 |
Junior Member |
|
|
I think I need to clear the GIT repository cache because whenever I clone a repository and use a workspace folder that I used for a previous version of that repository, EGit seems to remember the repository settings for the old folder, in particular, it remembers that the old repository was a bare repo.
Detailed situation is:
1. created an empty remote repository and pushed a local bare repo at /myproject to it
2. realized i couldn't pull from that remote bare repo so I deleted it and my local repo included the /myproject directory
3. recreated the empty remote repository
4. went to clone the empty remote repository locally but found if i cloned using the same directory as the old (deleted) repo it would assume this recreated repo was bare like the old one.
5. if i clone the empty remote repository into a different directory like /myproject2 everything works fine, but if i clone the empty repository into /myproject it somehow retains the old repository settings.
I checked the .git/config for the the cloned repository in both cases and note that the 'bare' config option is not set so I assume there must be some EGit repository cache file somewhere that retains these settings that I must edit/delete.
Anyone know where it is?
[Updated on: Mon, 06 June 2011 15:45] Report message to a moderator
|
|
|
|
|
|
| Re: (no subject) [message #888220 is a reply to message #885627] |
Sun, 17 June 2012 17:54  |
Andre Dietisheim Messages: 130 Registered: July 2009 |
Senior Member |
|
|
I did a quick search in the eclipse bugzilla but couldn't find any reference to this. We also run into this when interacting programmatically with egit/jgit: https://issues.jboss.org/browse/JBIDE-12150
I strongly believe in some cache not being updated when you kill a project, or being updated too late. I have put on my TODO-list to setup a unit-test that would reproduce this and digging into egit/jgit to see if I can find a fix for it.
We'd appreciate a lot if you could point us to the bugzilla that was filed back then.
|
|
|
Powered by
FUDForum. Page generated in 3.48506 seconds