Procházet zdrojové kódy

Merge "InMemoryRepository: Abort BatchRefUpdate if a command previously failed"

tags/v4.2.0.201601211800-r
Shawn Pearce před 8 roky
rodič
revize
5001038f52

+ 5
- 0
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/InMemoryRepository.java Zobrazit soubor

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

if (!ObjectId.zeroId().equals(c.getNewId())) {
try {
RevObject o = rw.parseAny(c.getNewId());

Načítá se…
Zrušit
Uložit