commit | 604b3396a72461c4554248999b3dadcf620e82a9 | [log] [tgz] |
---|---|---|
author | Hugo Arès <hugo.ares@ericsson.com> | Thu May 14 13:06:39 2015 -0400 |
committer | David Pursehouse <david.pursehouse@sonymobile.com> | Fri May 15 12:36:28 2015 +0000 |
tree | f6436d0c071b21f67e1f7bb8f383d2fa59cfccb0 | |
parent | 1fc7654ab88d138454afbb1f6a11790394f9154d [diff] |
Fix creation of missing repositories createProject method was always returning false even if the project was successfully created on all the destinations. false &= true is always false Change-Id: If30f2f657c6e7ce31639c5839f7beb8f88c48b54
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationQueue.java b/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationQueue.java index 617dc02..95693d9 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationQueue.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationQueue.java
@@ -232,7 +232,7 @@ } public boolean createProject(Project.NameKey project, String head) { - boolean success = false; + boolean success = true; for (URIish uri : getURIs(project, FilterType.PROJECT_CREATION)) { success &= createProject(uri, head); }