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:
Dmitry Fink
2010-11-25 14:30:30 -08:00
parent 617aa397e3
commit 11bf1020bf

View File

@@ -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());