From 75e609ed054df28697990b68797136e57ab8e60f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reynir=20Bj=C3=B6rnsson?= Date: Fri, 20 Dec 2024 14:08:00 +0100 Subject: [PATCH] Quick fix mistakes It didn't compile :( Lwt.Infix was opened and not Lwt.Syntax. Also, Git.Value.Commit needs to be fully qualified. --- src/git_kv.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/git_kv.ml b/src/git_kv.ml index 090d87d..1fe3fbd 100644 --- a/src/git_kv.ml +++ b/src/git_kv.ml @@ -474,8 +474,8 @@ module Make (Pclock : Mirage_clock.PCLOCK) = struct | None, Some head -> (* See https://github.com/ocaml/ocaml/issues/9301 why we have the intermediate [r] value. *) - let+ r = Store.read_exn t.store head in - let[@warning "-8"] Commit c = r in + Store.read_exn t.store head >|= fun r -> + let[@warning "-8"] Git.Value.Commit c = r in let author = Git_commit.author c in let secs, tz_offset = author.Git.User.date in let secs =