···1515 1
1616 | Config.Git -> (
1717 (* Export as bundle or tar - for now just list what would be exported *)
1818- let git_dir = Fpath.(v config.store_path / ".git") in
1818+ let git_dir = snd Eio.Path.(fs / config.store_path / ".git") in
1919 let store = Irmin.Git_interop.import_git ~sw ~fs ~git_dir in
2020 match Irmin.Store.Git.checkout store ~branch with
2121 | None ->
+1-1
bin/cmd_info.ml
···4040 Fmt.pr "Branch: %s@." config.default_branch;
4141 match config.backend with
4242 | Config.Git ->
4343- let git_dir = Fpath.(v config.store_path / ".git") in
4343+ let git_dir = snd Eio.Path.(fs / config.store_path / ".git") in
4444 let store = Irmin.Git_interop.import_git ~sw ~fs ~git_dir in
4545 let branches = Irmin.Store.Git.branches store in
4646 Fmt.pr "Branches: %d@." (List.length branches);
+1-1
bin/cmd_init.ml
···66 Eio_main.run @@ fun env ->
77 let fs = Eio.Stdenv.cwd env in
88 Eio.Switch.run @@ fun sw ->
99- let path' = Fpath.v path in
99+ let path' = snd Eio.Path.(fs / path) in
1010 match backend with
1111 | `Git ->
1212 let _store = Git_interop.init_git ~sw ~fs ~path:path' in
+1-1
bin/common.ml
···6262 type hash = Hash.sha1
63636464 let open_store ~sw ~fs ~config =
6565- let git_dir = Fpath.(v config.Config.store_path / ".git") in
6565+ let git_dir = snd Eio.Path.(fs / config.Config.store_path / ".git") in
6666 Git_interop.import_git ~sw ~fs ~git_dir
67676868 let checkout store ~branch = Store.Git.checkout store ~branch
+3-3
lib/codec.ml
···111111 let user_of_string s =
112112 (* Parse "Name <email>" format *)
113113 match String.index_opt s '<' with
114114- | None -> Git.User.v ~name:s ~email:"" ~date:timestamp ()
114114+ | None -> Git.User.make ~name:s ~email:"" ~date:timestamp ()
115115 | Some i ->
116116 let name = String.trim (String.sub s 0 i) in
117117 let rest = String.sub s (i + 1) (String.length s - i - 1) in
···120120 | None -> rest
121121 | Some j -> String.sub rest 0 j
122122 in
123123- Git.User.v ~name ~email ~date:timestamp ()
123123+ Git.User.make ~name ~email ~date:timestamp ()
124124 in
125125- Git.Commit.v ~tree:(git_hash_of_sha1 tree)
125125+ Git.Commit.make ~tree:(git_hash_of_sha1 tree)
126126 ~parents:(List.map git_hash_of_sha1 parents)
127127 ~author:(user_of_string author) ~committer:(user_of_string committer)
128128 (Some message)