diff options
author | Santo Cariotti <santo@dcariotti.me> | 2021-03-24 21:33:56 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2021-03-24 21:33:56 +0100 |
commit | f1ff95bb3d84f6bcc4ce20682831609a3446e7b9 (patch) | |
tree | 8f569a06e5a918612600b1de8ff306478861cfe6 | |
parent | 1a0d0fe9e165a76f279764f0f11019a0dd1d73ea (diff) |
fix: remove the folder after clone
-rw-r--r-- | src/git.rs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) } |