Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2013-12-16 14:54:12 +0000
committerGerrit Code Review @ Eclipse.org2013-12-16 14:54:12 +0000
commite18969dc18c76f41d0dc5f37b947632af1428327 (patch)
tree125334abe4cc679902a97f7c4d4964ceafc5ad50 /org.eclipse.egit.ui
parentc93d33fd9e706bb7e28f8937654c8368cbeb1791 (diff)
parentb20f2f4103c12e8b24cd10ea5416660604a7c3c8 (diff)
downloadegit-e18969dc18c76f41d0dc5f37b947632af1428327.tar.gz
egit-e18969dc18c76f41d0dc5f37b947632af1428327.tar.xz
egit-e18969dc18c76f41d0dc5f37b947632af1428327.zip
Merge changes Ib67a4593,Iecf1c85f into stable-3.2
* changes: Fix ContainerTreeIterator and RepositoryMapping for submodule repos Fix importing of submodule repositories using Git 1.7.8 layout
Diffstat (limited to 'org.eclipse.egit.ui')
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/sharing/ExistingOrNewPage.java16
1 files changed, 7 insertions, 9 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/sharing/ExistingOrNewPage.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/sharing/ExistingOrNewPage.java
index 320e03e7f4..0d192d0b6e 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/sharing/ExistingOrNewPage.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/sharing/ExistingOrNewPage.java
@@ -337,8 +337,8 @@ class ExistingOrNewPage extends WizardPage {
updateProjectTreeItem(treeItem, project);
treeItem.setText(1, project.getLocation().toOSString());
fillTreeItemWithGitDirectory(m, treeItem, false);
- treeItem.setData(new ProjectAndRepo(project, treeItem
- .getText(2)));
+ treeItem.setData(new ProjectAndRepo(project, m
+ .getGitDirAbsolutePath().toOSString()));
treeItem.setChecked(true);
}
@@ -351,15 +351,16 @@ class ExistingOrNewPage extends WizardPage {
TreeItem treeItem2 = new TreeItem(treeItem, SWT.NONE);
updateProjectTreeItem(treeItem2, project);
fillTreeItemWithGitDirectory(m, treeItem2, true);
- treeItem2.setData(new ProjectAndRepo(project, treeItem2
- .getText(2)));
+ treeItem2.setData(new ProjectAndRepo(project, m
+ .getGitDirAbsolutePath().toOSString()));
while (mi.hasNext()) { // fill in additional mappings
m = mi.next();
treeItem2 = new TreeItem(treeItem, SWT.NONE);
updateProjectTreeItem(treeItem2, project);
fillTreeItemWithGitDirectory(m, treeItem2, true);
treeItem2.setData(new ProjectAndRepo(m.getContainer()
- .getProject(), treeItem2.getText(2)));
+ .getProject(), m.getGitDirAbsolutePath()
+ .toOSString()));
}
treeItem.setExpanded(true);
allProjectsInExistingRepos = false;
@@ -499,10 +500,7 @@ class ExistingOrNewPage extends WizardPage {
treeItem.setText(2,
UIText.ExistingOrNewPage_SymbolicValueEmptyMapping);
else {
- IPath container = m.getContainerPath();
- if (!container.isEmpty())
- container = Path.fromOSString("."); //$NON-NLS-1$
- IPath relativePath = container.append(m.getGitDir());
+ IPath relativePath = new Path(m.getGitDir());
if (isAlternative) {
IPath withoutLastSegment = relativePath.removeLastSegments(1);
IPath path;

Back to the top