Replicate all refs except refs/for for replication in PosReceive
This fixes a bug where only heads and tags are being scheduled for replication in PostReceiveHook(). Change-Id: I9f280c14e0207f975d43d028a1a330791367c5cd
This commit is contained in:
@@ -300,8 +300,8 @@ public class ReceiveCommits implements PreReceiveHook, PostReceiveHook {
|
||||
}
|
||||
}
|
||||
|
||||
if (isHead(c) || isTag(c)) {
|
||||
// We only schedule heads and tags for replication.
|
||||
if (!c.getRefName().startsWith(NEW_CHANGE)) {
|
||||
// We only schedule direct refs updates for replication.
|
||||
// Change refs are scheduled when they are created.
|
||||
//
|
||||
replication.scheduleUpdate(project.getNameKey(), c.getRefName());
|
||||
|
||||
Reference in New Issue
Block a user