aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2012-03-15 20:47:46 (EDT)
committerMatthias Sohn2012-03-15 20:47:46 (EDT)
commit1343e86990f989722e39f86a7aef81c34fa5d7cc (patch)
treef7cf834a2b969c5a2ef62d3052c74c8ef9adfeb6
parenta15a4cc713939e80d91f7b195b69a8c7fefb24bc (diff)
downloadegit-1343e86990f989722e39f86a7aef81c34fa5d7cc.zip
egit-1343e86990f989722e39f86a7aef81c34fa5d7cc.tar.gz
egit-1343e86990f989722e39f86a7aef81c34fa5d7cc.tar.bz2
IAE: Empty path not permitted. when creating a patchrefs/changes/65/5365/2
The exception is thrown when trying to create a patch for a project which is at the same level as repository. Change-Id: I43c369f6301c4b436f835c73fe41aeee1c0046ed Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitCreatePatchWizard.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitCreatePatchWizard.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitCreatePatchWizard.java
index dc25eae..a1fc9ef 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitCreatePatchWizard.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitCreatePatchWizard.java
@@ -223,7 +223,11 @@ public class GitCreatePatchWizard extends Wizard {
RepositoryMapping rm = RepositoryMapping.getMapping(r);
String repoRelativePath = rm.getRepoRelativePath(r);
if (repoRelativePath != null)
- filters.add(PathFilter.create(repoRelativePath));
+ if (repoRelativePath.equals("")) //$NON-NLS-1$
+ // repository selected
+ return TreeFilter.ALL;
+ else
+ filters.add(PathFilter.create(repoRelativePath));
}
if (filters.size() == 0)
return null;