Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » How can I clear the repository cache? [SOLVED]
How can I clear the repository cache? [SOLVED] [message #676869] Mon, 06 June 2011 15:34 Go to previous message
petrocket is currently offline 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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:core.autocrlf=true still buggy with 2.0.0-rc2
Next Topic:How to implement Patch over Email using JGit
Goto Forum:
  


Current Time: Sat May 25 01:03:11 EDT 2013

Powered by FUDForum. Page generated in 0.01729 seconds