matthiasblaesing commented on code in PR #6823:
URL: https://github.com/apache/netbeans/pull/6823#discussion_r1427099410


##########
ide/git/src/org/netbeans/modules/git/ui/push/PushWizard.java:
##########
@@ -169,7 +169,7 @@ public synchronized void nextPanel () {
                 Collection<PushMapping> mappings = 
pushBranchesStep.getSelectedMappings();
                 Map<String, String> remoteBranches = new LinkedHashMap<String, 
String>(mappings.size());
                 for (PushMapping mapping : mappings) {
-                    if (!mapping.isDeletion() && mapping instanceof 
PushMapping.PushBranchMapping) {
+                    if ((!mapping.isDestructive() || mapping.getLocalName() != 
null) && mapping instanceof PushMapping.PushBranchMapping) {

Review Comment:
   I thought that I could reconstruct the reason, but all test cases I am able 
to construct now don't match the case that is added by this. I'm pretty sure, 
that I hit that code path, but fail to recall.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to