diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/InMemoryRepository.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/InMemoryRepository.java index 5e246b47b..b312835bb 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/InMemoryRepository.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/InMemoryRepository.java @@ -274,7 +274,7 @@ public class InMemoryRepository extends DfsRepository { if (performsAtomicTransactions()) { try { lock.writeLock().lock(); - batch(walk, getCommands()); + batch(getCommands()); } finally { lock.writeLock().unlock(); } @@ -304,7 +304,7 @@ public class InMemoryRepository extends DfsRepository { return new RefCache(ids.toRefList(), sym.toRefList()); } - private void batch(RevWalk walk, List cmds) { + private void batch(List cmds) { // Validate that the target exists in a new RevWalk, as the RevWalk // from the RefUpdate might be reading back unflushed objects. Map peeled = new HashMap<>();