|
|
@ -310,6 +310,11 @@ public class InMemoryRepository extends DfsRepository { |
|
|
|
Map<ObjectId, ObjectId> peeled = new HashMap<>(); |
|
|
|
Map<ObjectId, ObjectId> peeled = new HashMap<>(); |
|
|
|
try (RevWalk rw = new RevWalk(getRepository())) { |
|
|
|
try (RevWalk rw = new RevWalk(getRepository())) { |
|
|
|
for (ReceiveCommand c : cmds) { |
|
|
|
for (ReceiveCommand c : cmds) { |
|
|
|
|
|
|
|
if (c.getResult() != ReceiveCommand.Result.NOT_ATTEMPTED) { |
|
|
|
|
|
|
|
reject(cmds); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!ObjectId.zeroId().equals(c.getNewId())) { |
|
|
|
if (!ObjectId.zeroId().equals(c.getNewId())) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
RevObject o = rw.parseAny(c.getNewId()); |
|
|
|
RevObject o = rw.parseAny(c.getNewId()); |
|
|
|