~/selfhut

5c92aea0776521efb6e29f39d41d3271f00a2289 — Arthur Melton c9adbeef 2 years ago
undo that change
1 files changed, 1 insertions(+), 0 deletions(-)

M src/clone.rs
M src/clone.rs => src/clone.rs +1 -0
@@ 7,6 7,7 @@ use std::path::Path;

pub async fn clone(repo: String, path: PathBufWithDotfiles) -> Option<NamedFile> {
    let mut repo_path = CONFIG.git_location.clone();
    repo_path.push(format!("{}.git", repo));
    repo_path.push(".git");
    repo_path.push(path.get());
    NamedFile::open(repo_path).await.ok()
}