convert.h: drop 'extern' from function declaration
[gitweb.git] / log-tree.c
index 76475d0136b60d1f19ae1267014bed8485dc2898..c0ac7af7cb6bffea85447ba3af151ee6b8ab65e3 100644 (file)
@@ -547,7 +547,7 @@ void show_log(struct rev_info *opt)
        struct strbuf msgbuf = STRBUF_INIT;
        struct log_info *log = opt->loginfo;
        struct commit *commit = log->commit, *parent = log->parent;
-       int abbrev_commit = opt->abbrev_commit ? opt->abbrev : GIT_SHA1_HEXSZ;
+       int abbrev_commit = opt->abbrev_commit ? opt->abbrev : the_hash_algo->hexsz;
        const char *extra_headers = opt->extra_headers;
        struct pretty_print_context ctx = {0};