Merge pull request 'Delete an assert false and replace it by an empty PACK file' (#17) from empty-pack-file into main
Reviewed-on: https://git.robur.io/robur/git-kv/pulls/17
This commit is contained in:
commit
92b9e45451
1 changed files with 3 additions and 1 deletions
|
@ -253,7 +253,9 @@ let pack t ~commit stream =
|
||||||
Lwt.return_unit
|
Lwt.return_unit
|
||||||
|
|
||||||
let to_octets t = match t.head with
|
let to_octets t = match t.head with
|
||||||
| None -> assert false (* TODO(dinosaure): empty PACK file *)
|
| None ->
|
||||||
|
Lwt.return "PACK\000\000\000\002\000\000\000\000\
|
||||||
|
\x02\x9d\x08\x82\x3b\xd8\xa8\xea\xb5\xad\x6a\xc7\x5c\x82\x3c\xfd\x3e\xd3\x1e"
|
||||||
| Some commit ->
|
| Some commit ->
|
||||||
let buf = Buffer.create 0x100 in
|
let buf = Buffer.create 0x100 in
|
||||||
let stream = Option.iter (Buffer.add_string buf) in
|
let stream = Option.iter (Buffer.add_string buf) in
|
||||||
|
|
Loading…
Reference in a new issue