diff --git a/org.abapgit.adt.ui/src/org/abapgit/adt/ui/internal/wizards/AbapGitWizardPageBranchAndPackage.java b/org.abapgit.adt.ui/src/org/abapgit/adt/ui/internal/wizards/AbapGitWizardPageBranchAndPackage.java index 81df913a..c5af9a89 100644 --- a/org.abapgit.adt.ui/src/org/abapgit/adt/ui/internal/wizards/AbapGitWizardPageBranchAndPackage.java +++ b/org.abapgit.adt.ui/src/org/abapgit/adt/ui/internal/wizards/AbapGitWizardPageBranchAndPackage.java @@ -253,7 +253,8 @@ public void run(IProgressMonitor monitor) throws InvocationTargetException, Inte if (packageServiceUI.packageExists(AbapGitWizardPageBranchAndPackage.this.destination, packageName, monitor)) { List packageRefs = packageServiceUI .find(AbapGitWizardPageBranchAndPackage.this.destination, packageName, monitor); - AbapGitWizardPageBranchAndPackage.this.cloneData.packageRef = packageRefs.stream().findFirst().orElse(null); + AbapGitWizardPageBranchAndPackage.this.cloneData.packageRef = packageRefs.stream() + .filter((p) -> p.getName().equalsIgnoreCase(packageName)).findFirst().orElse(null); } } });