log-tree: switch GIT_SHA1_HEXSZ to the_hash_algo->hexsz

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

brian m. carlson committed Jul 16, 2018 at 01:28 UTC 2ed1960a77234659c1de49a4b9fc541d9e91f007
1 file changed +1 -1
log-tree.c
+1 -1
@@ -545,7 +545,7 @@ void show_log(struct rev_info *opt)
545 struct strbuf msgbuf = STRBUF_INIT;
546 struct log_info *log = opt->loginfo;
547 struct commit *commit = log->commit, *parent = log->parent;
548 - int abbrev_commit = opt->abbrev_commit ? opt->abbrev : GIT_SHA1_HEXSZ;
548 + int abbrev_commit = opt->abbrev_commit ? opt->abbrev : the_hash_algo->hexsz;
549 const char *extra_headers = opt->extra_headers;
550 struct pretty_print_context ctx = {0};
551