test-reach: test is_descendant_of
[gitweb.git] / builtin / fmt-merge-msg.c
index 36318ef46e74314913386eaae5b24484f56690db..7277d557b2d1972250e5b8b4117bc3be23964b6f 100644 (file)
@@ -12,6 +12,7 @@
 #include "fmt-merge-msg.h"
 #include "gpg-interface.h"
 #include "repository.h"
+#include "commit-reach.h"
 
 static const char * const fmt_merge_msg_usage[] = {
        N_("git fmt-merge-msg [-m <message>] [--log[=<n>] | --no-log] [--file <file>]"),
@@ -344,7 +345,8 @@ static void shortlog(const char *name,
        const struct object_id *oid = &origin_data->oid;
        int limit = opts->shortlog_len;
 
-       branch = deref_tag(parse_object(the_repository, oid), oid_to_hex(oid),
+       branch = deref_tag(the_repository, parse_object(the_repository, oid),
+                          oid_to_hex(oid),
                           GIT_SHA1_HEXSZ);
        if (!branch || branch->type != OBJ_COMMIT)
                return;