Suppress bare repositories in RepositorySearchDialog
commitc5e73f977ca53880334a638d1e21fd8cd2bd1ef6
authorMatthias Sohn <matthias.sohn@sap.com>
Sun, 3 Jul 2016 21:57:29 +0000 (3 23:57 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 6 Jul 2016 13:54:03 +0000 (6 15:54 +0200)
treec1c4d34ab475facf18e707e142565a4a6e80f477
parent65e85ca339e6998224fb06b1560fffef3b495579
Suppress bare repositories in RepositorySearchDialog

When a bare repository is selected in the GitSelectRepositoryPage, the
import wizard throws and reports multiple NoWorkTreeExceptions.

Since a bare repository has no working tree, one cannot import from a
bare repository. Therefore, suppress bare repositories in the
RepositorySearchDialog which is used to add repositories to the
GitSelectRepositoryPage when used from the GitImportWizard. The
user thus cannot select a bare repository.

Bug: 495930
Change-Id: I6102eadd19e07ae47cf48ce0bf24ef6e64a44749
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitSelectRepositoryPage.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositorySearchDialog.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositorySearchWizard.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/AddCommand.java