Close corresponding change when pushing to refs/heads/*

Gerrit would not close the open changes with matching change-ids,
when the user pushes commits directly to refs/heads/*.

This issue could be triggered for two reasons:

1. It is triggered when Gerrit detects no changes between the
pushed commits and the current patchset on the open changes. This
patch make sure that the matching open change is always closed when
pushing to refs/heads/*, even if no visible changes is detected.

2. The same commit exists on another branch than the destination
branch. This could trick gerrit into just "re-closing" the wrong
change.

Change-Id: I52391b0c7642e97673b3fa9a69d38af2ff96037f
1 file changed