diff options
| author | Markus Keller | 2012-10-01 18:11:50 +0000 |
|---|---|---|
| committer | Markus Keller | 2012-10-01 18:11:50 +0000 |
| commit | d73a0e8a3867e2384c71b2217521e91542dd4423 (patch) | |
| tree | 00c936e3796fe2d5cece721cf6d1495c613e9d0a | |
| parent | 998ce045f57752688c3c378714f11ed49ec8a06a (diff) | |
| download | egit-d73a0e8a3867e2384c71b2217521e91542dd4423.tar.gz egit-d73a0e8a3867e2384c71b2217521e91542dd4423.tar.xz egit-d73a0e8a3867e2384c71b2217521e91542dd4423.zip | |
Import from repository clones to wrong location on disk
Remove the bad check for existence of the parent directory.
Bug: 383320
Change-Id: I5a68de9b839f4040b0dd5596260609d2c1d6b6fc
Signed-off-by: Markus Keller <markus_keller@ch.ibm.com>
| -rw-r--r-- | org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/CloneDestinationPage.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/CloneDestinationPage.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/CloneDestinationPage.java index b93629a204..80b91e71e5 100644 --- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/CloneDestinationPage.java +++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/CloneDestinationPage.java @@ -432,7 +432,7 @@ class CloneDestinationPage extends WizardPage { } catch (CoreException e) { parentDir = null; } - if (parentDir == null || !parentDir.exists() || !parentDir.isDirectory()) + if (parentDir == null) parentDir = ResourcesPlugin.getWorkspace().getRoot().getRawLocation().toFile(); directoryText.setText(new File(parentDir, n).getAbsolutePath()); } |
