summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorMarkus Keller2012-10-01 14:11:50 (EDT)
committer Markus Keller2012-10-01 14:11:50 (EDT)
commitd73a0e8a3867e2384c71b2217521e91542dd4423 (patch)
tree00c936e3796fe2d5cece721cf6d1495c613e9d0a
parent998ce045f57752688c3c378714f11ed49ec8a06a (diff)
downloadegit-d73a0e8a3867e2384c71b2217521e91542dd4423.zip
egit-d73a0e8a3867e2384c71b2217521e91542dd4423.tar.gz
egit-d73a0e8a3867e2384c71b2217521e91542dd4423.tar.bz2
Import from repository clones to wrong location on diskrefs/changes/03/8003/1
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.java2
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 b93629a..80b91e7 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());
}