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 <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

brian m. carlson committed May 2, 2018 at 00:25 UTC 7a915b4b743d13e57f2a65494f19055617fd4406
1 file changed +1 -1
sequencer.c
+1 -1
@@ -1480,7 +1480,7 @@ static int do_pick_commit(enum todo_command command, struct commit *commit,
1480 unborn = get_oid("HEAD", &head);
1481 if (unborn)
1482 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",
1484 NULL, 0))
1485 return error_dirty_index(opts);
1486 }