Skip to content

Commit b799a3c

Browse files
committed
🐛 Fixed diff_tree_to_index bug
1 parent 6648579 commit b799a3c

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
@@ -189,7 +189,7 @@ impl Git {
189189

190190
let diff = self
191191
.repo
192-
.diff_tree_to_index(None, None, Some(&mut diff_options))
192+
.diff_tree_to_index(Some(&tree), Some(&index), Some(&mut diff_options))
193193
.unwrap();
194194

195195
let commit_response: Result<Oid, git2::Error> = self.repo.commit(

0 commit comments

Comments
 (0)