Browse Source

Check non-flushed packs for existence of object

Change-Id: Id466909d70ec6f828c904692139891dec880305e
Signed-off-by: Zhen Chen <czhen@google.com>
stable-4.10
Zhen Chen 7 years ago
parent
commit
fdf8620ec9
  1. 6
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsInserter.java

6
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsInserter.java

@ -615,6 +615,12 @@ public class DfsInserter extends ObjectInserter {
}
}
@Override
public boolean has(AnyObjectId objectId) throws IOException {
return (objectMap != null && objectMap.contains(objectId))
|| ctx.has(objectId);
}
@Override
public Set<ObjectId> getShallowCommits() throws IOException {
return ctx.getShallowCommits();

Loading…
Cancel
Save