Validate target repository path entered by the user
commitf19f61427fd4e6aad44b8851e7661fc814074c50
authorMatthias Sohn <matthias.sohn@sap.com>
Thu, 23 Jun 2016 22:12:51 +0000 (24 00:12 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 23 Dec 2016 13:01:54 +0000 (23 14:01 +0100)
tree09213b5852f59707a23b4db2b228eaa2133dd388
parentfdf10f1325b4133eba2f31a3e073cee517097611
Validate target repository path entered by the user

Validate the repository path entered in NewRepositoryWizard or
GitImportWizard to prevent we hit an InvalidPathException in JGit.

Since it seems many users try to paste a git clone command or a URL
instead of a local path raise a dedicated error messages for these
cases.

Bug: 496688
Change-Id: I7c40f2d47f5b37ce50d873dbd02e6365097d7110
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.egit.core.test/src/org/eclipse/egit/core/internal/util/RepositoryPathCheckerTest.java [new file with mode: 0644]
org.eclipse.egit.core/src/org/eclipse/egit/core/internal/CoreText.java
org.eclipse.egit.core/src/org/eclipse/egit/core/internal/coretext.properties
org.eclipse.egit.core/src/org/eclipse/egit/core/internal/util/RepositoryPathChecker.java [new file with mode: 0644]
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/UIText.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/CloneDestinationPage.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/CreateRepositoryPage.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/uitext.properties