Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339486 - Share project from workspace with existing clone
Summary: Share project from workspace with existing clone
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-10 05:08 EST by Jens Reimann CLA
Modified: 2011-05-25 11:15 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Reimann CLA 2011-03-10 05:08:42 EST
Build Identifier: 0.11.3

If you clone a repository using the git repositories view and import projects to your workspace you end up with a complete working workspace. That is ok!

Now you create a new project inside your workspace (default settings) and you end up with a project in your workspace, which might not be in the directory of your previous git clone.

If you now want to share the project in order to add it to one of your cloned git repositories you are stuck. There seems to be no way to tell the share dialog that your git repository actually is somewhere else.

Especially for users not thinking about where the files are actually located (which might be a lot Eclipse users) you have no chance to add a newly created project to an existing git clone.

imho the share dialog needs a "git repository picker" which allows one to pick any repository, or at least the ones you got in the git repository view. If the sources currently are outside the cloned git repository the dialog should tell you about that and allow you to relocate the project automatically to the correct location.

Reproducible: Always

Steps to Reproduce:
1. clone git repository
2. import projects
3. create new project with default settings
4. try to import newly created project to previous cloned repository
Comment 1 Robin Stocker CLA 2011-05-25 10:25:16 EDT
See this change:

http://egit.eclipse.org/r/#change,3472
Comment 2 Matthias Sohn CLA 2011-05-25 11:15:36 EDT
merged as 55213101b1d0e56a4eafa7df01199438bb8c230a