Skip to content

Commit 1477e91

Browse files
committed
Empty commits should have (need) change IDs
Passing the Defalt::default() as the headers option creates a new change id
1 parent 31f24ef commit 1477e91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/gitbutler-branch-actions/src/virtual.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ pub(crate) fn insert_blank_commit(
14691469
let commit_tree = repository
14701470
.find_real_tree(&commit, Default::default())
14711471
.unwrap();
1472-
let blank_commit_oid = ctx.commit("", &commit_tree, &[&commit], None)?;
1472+
let blank_commit_oid = ctx.commit("", &commit_tree, &[&commit], Some(Default::default()))?;
14731473

14741474
if commit.id() == stack.head() && offset < 0 {
14751475
// inserting before the first commit

0 commit comments

Comments
 (0)