diff options
author | David Pursehouse <dpursehouse@collab.net> | 2018-02-25 11:23:09 +0900 |
---|---|---|
committer | David Pursehouse <dpursehouse@collab.net> | 2018-02-25 11:29:39 +0900 |
commit | e554c9ba01f3771fd539480f4b99e128a1aabe1c (patch) | |
tree | c8a0c0dc717e027edf16d6636a1ebc18c972bd90 | |
parent | 5723f326849d823c36c722b749d3ec03b088e63c (diff) |
Revert "Use proper HEAD ref value when creating project"
The issue fixed by this commit was fixed in a different way on the
stable-2.14 branch. Reverting this on stable-2.15 will make the merge
from stable-2.14 easier.
This reverts commit e145010de7911623c98e6111537ffa4997d1a82e.
Change-Id: I7e44f62f119b7ed26c8d96bfe9ef8442ff687b29
-rw-r--r-- | src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java b/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java index 28b5e6b..8521910 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java @@ -21,9 +21,7 @@ import com.google.common.base.Throwables; import com.google.common.collect.LinkedListMultimap; import com.google.common.collect.ListMultimap; import com.google.common.collect.Sets; -import com.google.gerrit.extensions.api.changes.NotifyHandling; import com.google.gerrit.extensions.events.GitReferenceUpdatedListener; -import com.google.gerrit.extensions.events.NewProjectCreatedListener; import com.google.gerrit.extensions.restapi.AuthException; import com.google.gerrit.metrics.Timer1; import com.google.gerrit.reviewdb.client.Project; @@ -401,24 +399,6 @@ class PushOne implements ProjectRunnable, CanceledWhileRunning { try { Ref head = git.exactRef(Constants.HEAD); if (replicationQueue.createProject(projectName, head != null ? head.getName() : null)) { - NewProjectCreatedListener.Event event = - new NewProjectCreatedListener.Event() { - @Override - public String getProjectName() { - return projectName.get(); - } - - @Override - public String getHeadName() { - return head != null ? head.getTarget().getName() : null; - } - - @Override - public NotifyHandling getNotify() { - return NotifyHandling.NONE; - } - }; - replicationQueue.onNewProjectCreated(event); repLog.warn("Missing repository created; retry replication to " + uri); pool.reschedule(this, Destination.RetryReason.REPOSITORY_MISSING); } else { |