set-project-parent --children-of: Fix getting parent for level 1 projects

For direct child projects of the 'All-Projects' project the name of the
parent project was incorrectly retrieved if the parent name was not
explicitly stored as 'All-Projects' in the project.config file.

Change-Id: Ic9aab7f96c04bac21778f8c93bc5cb5056161ced
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2013-03-18 16:55:09 +01:00
parent 626334ded0
commit 069599ef78

View File

@@ -223,7 +223,7 @@ final class AdminSetParent extends SshCommand {
continue; continue;
} }
if (parentName.equals(e.getProject().getParent(projectName))) { if (parentName.equals(e.getProject().getParent(allProjectsName))) {
childProjects.add(e.getProject()); childProjects.add(e.getProject());
} }
} }