Merge "Ignore new-change-for-all-not-in-target for root commit"

This commit is contained in:
Edwin Kempin
2014-09-12 10:12:01 +00:00
committed by Gerrit Code Review

View File

@@ -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;
} }