builtin/reset: convert use of EMPTY_TREE_SHA1_BIN
[gitweb.git] / sequencer.c
index 667f35ebdffbc1ef730e310cbea9b3dbce786e21..1ccc7782596a5aaceb033c19f6f3db8dd06dff40 100644 (file)
@@ -1480,7 +1480,7 @@ static int do_pick_commit(enum todo_command command, struct commit *commit,
                unborn = get_oid("HEAD", &head);
                if (unborn)
                        oidcpy(&head, the_hash_algo->empty_tree);
-               if (index_differs_from(unborn ? EMPTY_TREE_SHA1_HEX : "HEAD",
+               if (index_differs_from(unborn ? empty_tree_oid_hex() : "HEAD",
                                       NULL, 0))
                        return error_dirty_index(opts);
        }