Create ref for new patch set on direct push (second try)
If a change is in review and a new commit that has the Change-Id of this change in its commit message is pushed directly, then a new patch set for this commit is created and the change gets automatically closed. The problem is that no change ref for this new patch set is created and as result the change ref that is shown for the new patch set in the WebUI and which is contained in the patchset-created event is invalid. Change-Id: I30843889a3f1d1e5a09503b2f30b363f1bf79495 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -1745,6 +1745,9 @@ public class ReceiveCommits {
|
||||
markChangeMergedByPush(db, this);
|
||||
}
|
||||
|
||||
if (cmd.getResult() == NOT_ATTEMPTED) {
|
||||
cmd.execute(rp);
|
||||
}
|
||||
replication.fire(project.getNameKey(), newPatchSet.getRefName());
|
||||
hooks.doPatchsetCreatedHook(change, newPatchSet, db);
|
||||
if (mergedIntoRef != null) {
|
||||
|
||||
Reference in New Issue
Block a user