save tree objects when cloning

This commit is contained in:
grimhilt
2023-06-05 23:08:11 +02:00
parent 2117ce3016
commit fe990e4213
7 changed files with 150 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ use std::path::PathBuf;
use crate::utils::read;
use std::io;
pub fn read_only(mut path: PathBuf) -> File {
pub fn _read_only(mut path: PathBuf) -> File {
path.push("index");
OpenOptions::new()
.read(true)