Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] RepositoryFinder cannot find repos in workspace-folders

On 19 Aug 2011, at 15:53, André Dietisheim wrote:

> Hi guys
> I hit troubles when I created the following directory structure in my workspace:
> workspace
> |_folder
> |   |_ .git
> |
> |_project
> I could not connect "project" to the git-repo in "folder". I wanted this directory structure in a test to be able to have 2 repos (an origin and a clone). According to the constructor in ConnectoProviderOperation, I should be able to connect a project to a repo at an absolute path in my filesystem. I stepped through ConnectProviderOperation#find and according to my understanding it will only find repos in the project-folder and its parents until it reaches the (system-property) ceiling. Am I right in thinking that this is a bug or do I miss something?

Right, a Git repository is managed by a .git in a folder that is the same as, or a parent of, the current folder.  If you wanted to have multiple clones, you'd need multiple repositories.


Back to the top