Summary: | Support copy/move of workspace and/or local Git repository clone | ||
---|---|---|---|
Product: | [Technology] EGit | Reporter: | Markus Keller <markus.kell.r> |
Component: | UI | Assignee: | Project Inbox <egit.ui-inbox> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | angvoz.dev, daniel_megert, dj.houghton, KajKandler, matthias.sohn, piotr.findeisen, remy.suen |
Version: | 1.1 | ||
Target Milestone: | 4.3 | ||
Hardware: | All | ||
OS: | All | ||
See Also: |
https://git.eclipse.org/r/67783 https://git.eclipse.org/c/egit/egit.git/commit/?id=71d222e1e23e1579ebde825fe84053fae2f8ea97 |
||
Whiteboard: | |||
Bug Depends on: | 359744 | ||
Bug Blocks: |
Description
Markus Keller
2011-09-20 14:24:29 EDT
> (b) is harder, since project locations can only be relative to a workspace path
> variable, and I don't see a pre-defined path variable for the workspace root
> directory.
I'm not sure this is true, since it is possible to select the 'WORKSPACE_LOC' variable when creating a linked folder via UI - just not when creating a folder.
> Paths inside a workspace should be stored in a relative form, such
> that they don't break if the entire workspace is moved.
There's another problem with the full path: if I export the preferences and then import them in a new workspace all the Git repositories are pointing to the other workspace.
(In reply to comment #2) > There's another problem with the full path: if I export the preferences and > then import them in a new workspace all the Git repositories are pointing to > the other workspace. Yes, that's what I meant with comment 0 a). Filed bug 359744 for out-of-the-box support for comment 0 b). Help! Is there a workaround by editing the metadata of the git-repo or workspace? In other words in which files are a) and b) stored? a) is stored in .metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.egit.core.prefs. It is stored as an absolute path. (see RepositoryUtil.PREFS_DIRECTORIES) b) is stored in .metadata\.plugins\org.eclipse.core.resources\.projects\demo.helloworld\org.eclipse.egit.core\GitProjectData.properties. As far as I can see it is stored relative to the repositoy location (see constructor of RepositoryMapping). So I would say a) is the problem to be fixed. *** Bug 430510 has been marked as a duplicate of this bug. *** New Gerrit change created: https://git.eclipse.org/r/67783 Gerrit change https://git.eclipse.org/r/67783 was merged to [master]. Commit: http://git.eclipse.org/c/egit/egit.git/commit/?id=71d222e1e23e1579ebde825fe84053fae2f8ea97 submitted |