Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Is a relative path to git repository possible?
Is a relative path to git repository possible? [message #871513] Mon, 14 May 2012 06:01 Go to previous message
Matthew Webber is currently offline Matthew Webber
Messages: 180
Registered: December 2010
Senior Member
Currently we clone our git repositories outside the workspace (as recommended), to a special location ${workspace.root}_git. So we have:

/parent
  /workspace
    . metadata
    features/
       feature_project_that_came_from_subversion/
    plugins/
       plugin_project_that_came_from_subversion/
  /workspace_git
    repo1/
       .git
       project11/
       project12/
    repo2/
       .git
       project21/
       project22/

This is very useful, since scripts know the relative path from the workspace to the git checkout parent.

However, it all breaks if I change the absolute location, for example by "mv parent parent_old". When I start Eclipse pointing to "parent_old", all the projects in the workspace open correctly, but all the projects that were imported from git cannot be opened, since EGit seems to retain the absolute path to the repository.

Is there any way for EGit to use a path relative to the workspace root?

Thanks


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Does Egit Support Mylyn Commit Changesets?
Next Topic:Transport Error - not authorized
Goto Forum:
  


Current Time: Thu May 23 16:51:19 EDT 2013

Powered by FUDForum. Page generated in 0.04131 seconds