summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-03-24 21:33:56 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-03-24 21:33:56 +0100
commitf1ff95bb3d84f6bcc4ce20682831609a3446e7b9 (patch)
tree8f569a06e5a918612600b1de8ff306478861cfe6 /src
parent1a0d0fe9e165a76f279764f0f11019a0dd1d73ea (diff)
fix: remove the folder after clone
Diffstat (limited to 'src')
-rw-r--r--src/git.rs3
1 files changed, 3 insertions, 0 deletions
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)
}