jenkinsci/gerrit-trigger-plugin — pull request #24 by kohsuke (2012-06-08 23:42:20+00:00)
Title: Fixed a double-trigger when a project is renamed

GerritHandler.gerritEventListeners uses a hash code as the key to remember listeners, and GerritTrigger derives hash code from the project name.

So when a project is renamed, the hash code changes, and GerritTrigger.stop() fails to remove the listener. This result in two listeners for the same project, so the triggering will happen twice.

This pull request consists of two commits. The first one does the minimal fix. The second one addresses the underlying problem more fundamentally. This allows the maintainers to take just the first commit and reject the second, although I think both changes make sense.