From f1ff95bb3d84f6bcc4ce20682831609a3446e7b9 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 24 Mar 2021 21:33:56 +0100 Subject: fix: remove the folder after clone --- src/git.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/git.rs b/src/git.rs index 2a8749c..08ba7a5 100644 --- a/src/git.rs +++ b/src/git.rs @@ -136,5 +136,8 @@ pub fn repo_commits( commits.push(get_commit(&hash, &repo_name)); } + // Remove the cloned repository folder + let _ = remove_dir_all(get_tmp_dir(&repo_name)); + Ok(commits) } -- cgit v1.2.3-18-g5258