Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324832

Summary: share project: can't create repository if subdirectory contains a repository
Product: [Technology] EGit Reporter: François Rey <eclipse.org>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: robin
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description François Rey CLA 2010-09-09 06:22:33 EDT
Build Identifier: 

With a project containing files, I wasn't able to create a new repository using the share project wizard. The git dialog disabled the create section and only offered to add the project in a repository contained in a subdirectory deep down in the project, which is the repository of a module used in the project.
I file this as a bug because I don't think it even make sense to share a project using a repository in a subdirectory. However I'm new to git/egit, so...

My suggestion in this case would be to not disable the creation of a new repository in the project root, and not enable the use of a repository in a subdirectory. If a subdirectory contains a repository, we should have the choice later on of adding that subdirectory as a plain directory in the project repository (fake submodule as explained in http://debuggable.com/posts/git-fake-submodules:4b563ee4-f3cc-4061-967e-0e48cbdd56cb) or as a submodule of the project when egit support them.

Reproducible: Always
Comment 1 Robin Stocker CLA 2013-09-27 11:47:39 EDT
Can not reproduce the problem anymore, assuming it was fixed.