Don't look for .git in subdirectories of project
commit56cb94a45fadf565f9bb88148b83ff000ce686fc
authorRobin Stocker <robin@nibor.org>
Fri, 18 Apr 2014 16:16:25 +0000 (18 18:16 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 18 Apr 2014 21:05:45 +0000 (18 23:05 +0200)
treea9972e53eff0df3054de088f082b33b04a331a21
parent9add60666b2c0efea47cee784dded4367f83041f
Don't look for .git in subdirectories of project

Connecting a project with a .git repository in one of its subdirectories
breaks the Team menu for the project and makes the subdirectory
disappear. When this happens with "auto share", it's very confusing.

Other places in the code could also not really handle this, e.g. the
share wizard displayed the repository location as ".git", when it really
should have shown "sub/dir/.git".

Bug: 421573
Change-Id: I4489cdd3526a30b1d2d575040792897a92da0c6d
Signed-off-by: Robin Stocker <robin@nibor.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.egit.core/src/org/eclipse/egit/core/Activator.java
org.eclipse.egit.core/src/org/eclipse/egit/core/op/ConnectProviderOperation.java
org.eclipse.egit.core/src/org/eclipse/egit/core/project/RepositoryFinder.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/AddCommand.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/sharing/ExistingOrNewPage.java