Skip to content

Commit 1fa08db

Browse files
committed
♻️ Refactored file diff stats function.
1 parent 10507fa commit 1fa08db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/git.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl Git {
195195

196196
match commit_response {
197197
Ok(commit) => {
198-
let new_tree = self.repo.find_tree(commit).unwrap();
198+
let new_tree = self.repo.find_tree(index.write_tree().unwrap()).unwrap();
199199

200200
let commit_hash = commit.to_string();
201201
let commit_hash = commit_hash[..7].to_string();

0 commit comments

Comments
 (0)