matthiasblaesing commented on a change in pull request #1995: [NETBEANS-3929]
Adding the ability to delete a tag from a remote repo.
URL: https://github.com/apache/netbeans/pull/1995#discussion_r387246126
##########
File path: ide/git/src/org/netbeans/modules/git/ui/push/PushAction.java
##########
@@ -341,10 +344,20 @@ protected void logUpdates (File repository, Map<String,
GitTransportUpdate> upda
}
}
} else {
-
logger.outputLine(NbBundle.getMessage(PushAction.class,
"MSG_PushAction.updates.updateTag", new Object[] { //NOI18N
- update.getLocalName(),
- update.getResult(),
- }));
+ //tag deleting or updating
+ if (update.getNewObjectId() == null &&
update.getOldObjectId() != null) {
+ //deleting tag from remote
+
logger.outputLine(NbBundle.getMessage(PushAction.class,
"MSG_PushAction.updates.deleteTag", new Object[]{ //NOI18N
+ update.getRemoteName(),
+ update.getOldObjectId(),
+ update.getResult(),}));
+ } else {
+ //updating or adding tag to the remoteё
Review comment:
This should not be there: Ń‘
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
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