Merge "Fix: Change closes when pushing commit to other branch."
This commit is contained in:
@@ -2333,10 +2333,10 @@ public class ReceiveCommits {
|
||||
}
|
||||
|
||||
if (change.getStatus() == Change.Status.MERGED ||
|
||||
change.getStatus() == Change.Status.ABANDONED) {
|
||||
// If its already merged, don't make further updates, it
|
||||
// might just be moving from an experimental branch into
|
||||
// a more stable branch.
|
||||
change.getStatus() == Change.Status.ABANDONED ||
|
||||
!change.getDest().get().equals(refName)) {
|
||||
// If it's already merged or the commit is not aimed for
|
||||
// this change's destination, don't make further updates.
|
||||
//
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user