Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356919 - default location in git enabled workspace requires editing, error-prone
Summary: default location in git enabled workspace requires editing, error-prone
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 1.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-07 08:13 EDT by Christian Campo CLA
Modified: 2013-11-06 03:27 EST (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 Christian Campo CLA 2011-09-07 08:13:58 EDT
When creating new projects in CVS based workspaces, you nearly also use the default location. The default location is the directory of the workspace plus the project name.

In Git enabled workspaces, this is invalid. So you manually edit the default location. That means you have to enter the Git repo directory AND you have you append the project name at the end. (if you dont you instantly mess up your whole git repo)

a) It would be really cool if the project wizard could help with the project location
b) maybe as a step in between it would be helpful to warn if somebody creates a project in the root of a Git repo
Comment 1 Remy Suen CLA 2011-09-07 21:33:42 EDT
If you use the import wizard to import projects from a Git repository then the wizard can scan for Eclipse projects in the repository for you to select. Of course, this assumes the Git repository has Eclipse .project files in it.
Comment 2 Christian Campo CLA 2011-09-08 02:38:45 EDT
(In reply to comment #1)
> If you use the import wizard to import projects from a Git repository then the
> wizard can scan for Eclipse projects in the repository for you to select. Of
> course, this assumes the Git repository has Eclipse .project files in it.

I don't think I explained it good enough for your to understand my problem is. I have my git repo in location A (i.e. c:/gitrepo/dir-A) and my workspace in location B (i.e. c:/workspace/dir-B). My understanding is that its the recommended way to have git repo and workspace in different locations (different from CVS or SVN usage).

So starting the new project wizard is a problem because by default it puts projects into location B/<project-name> where they should be in location A/<project-name>. So what I typically do when I create a new project that should be in Git is, I see the default location, click to disable the checkbox for default location. The directory name there goes blank. Now I have to use the Browse button (unless I have the dirname in my head) and often I will browse to my git repo name. 
What people often forget is to append the project name to the location of the project. That way they create the project in the root of the git repo which messes everything up….