Skip to content

Commit 7a915b4

Browse files
bk2204gitster
authored andcommitted
sequencer: convert one use of EMPTY_TREE_SHA1_HEX
Convert one use of EMPTY_TREE_SHA1_HEX to use empty_tree_oid_hex to avoid a dependency on a given hash algorithm. Signed-off-by: brian m. carlson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e9fe6f2 commit 7a915b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sequencer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,7 @@ static int do_pick_commit(enum todo_command command, struct commit *commit,
14801480
unborn = get_oid("HEAD", &head);
14811481
if (unborn)
14821482
oidcpy(&head, the_hash_algo->empty_tree);
1483-
if (index_differs_from(unborn ? EMPTY_TREE_SHA1_HEX : "HEAD",
1483+
if (index_differs_from(unborn ? empty_tree_oid_hex() : "HEAD",
14841484
NULL, 0))
14851485
return error_dirty_index(opts);
14861486
}

0 commit comments

Comments
 (0)