add refs to blob

This commit is contained in:
grimhilt
2023-08-11 18:21:00 +02:00
parent 16dbd25168
commit 4b12edbe5c
3 changed files with 119 additions and 42 deletions

View File

@@ -38,6 +38,13 @@ pub fn init() {
};
path.pop();
path.push("refs");
match builder.create(path.clone()) {
Ok(()) => (),
Err(_) => println!("Error: cannot create refs"),
};
path.pop();
path.push("HEAD");
match File::create(path.clone()) {
Ok(_) => (),