|
|
@ -216,16 +216,17 @@ public class PushConnectionTest { |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|
public void commandOrder() throws Exception { |
|
|
|
public void commandOrder() throws Exception { |
|
|
|
TestRepository<?> tr = new TestRepository<>(client); |
|
|
|
|
|
|
|
List<RemoteRefUpdate> updates = new ArrayList<>(); |
|
|
|
List<RemoteRefUpdate> updates = new ArrayList<>(); |
|
|
|
|
|
|
|
try (TestRepository<?> tr = new TestRepository<>(client)) { |
|
|
|
// Arbitrary non-sorted order.
|
|
|
|
// Arbitrary non-sorted order.
|
|
|
|
for (int i = 9; i >= 0; i--) { |
|
|
|
for (int i = 9; i >= 0; i--) { |
|
|
|
String name = "refs/heads/b" + i; |
|
|
|
String name = "refs/heads/b" + i; |
|
|
|
tr.branch(name).commit().create(); |
|
|
|
tr.branch(name).commit().create(); |
|
|
|
RemoteRefUpdate rru = new RemoteRefUpdate(client, name, name, false, null, |
|
|
|
RemoteRefUpdate rru = new RemoteRefUpdate(client, name, name, |
|
|
|
ObjectId.zeroId()); |
|
|
|
false, null, ObjectId.zeroId()); |
|
|
|
updates.add(rru); |
|
|
|
updates.add(rru); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PushResult result; |
|
|
|
PushResult result; |
|
|
|
try (Transport tn = testProtocol.open(uri, client, "server")) { |
|
|
|
try (Transport tn = testProtocol.open(uri, client, "server")) { |
|
|
|