diff --git a/packages/ogre/src/repository.ts b/packages/ogre/src/repository.ts index 835a483..47b502d 100644 --- a/packages/ogre/src/repository.ts +++ b/packages/ogre/src/repository.ts @@ -303,7 +303,7 @@ export class Repository private async moveTo(commit: Commit) { const deserializeFn = this.deserializeObjectFn ?? defaultDeserializeFn; - const targetTree = deserializeFn(commit.tree); + const targetTree = await deserializeFn(commit.tree); const patchToTarget = compare(this.data, targetTree); if (!patchToTarget || patchToTarget.length < 1) { return;