Merge "Ignore new-change-for-all-not-in-target for root commit"
This commit is contained in:
@@ -1304,9 +1304,11 @@ public class ReceiveCommits {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If tip is a merge commit or %base was specified,
|
// If tip is a merge commit, or the root commit or
|
||||||
// ignore newChangeForAllNotInTarget
|
// if %base was specified, ignore newChangeForAllNotInTarget
|
||||||
if (tip.getParentCount() > 1 || magicBranch.base != null) {
|
if (tip.getParentCount() > 1
|
||||||
|
|| magicBranch.base != null
|
||||||
|
|| tip.getParentCount() == 0) {
|
||||||
newChangeForAllNotInTarget = false;
|
newChangeForAllNotInTarget = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user