sha1_name: convert disambiguate_hint_fn to take object_id
[gitweb.git] / transport.c
index 417ed7f19f5fcec5fdf9828749e1e40b207a44e7..8a90b0c29b1557b631b6f679add93261f8288f7e 100644 (file)
@@ -447,7 +447,7 @@ static int print_one_push_status(struct ref *ref, const char *dest, int count,
 
 static int measure_abbrev(const struct object_id *oid, int sofar)
 {
-       char hex[GIT_SHA1_HEXSZ + 1];
+       char hex[GIT_MAX_HEXSZ + 1];
        int w = find_unique_abbrev_r(hex, oid->hash, DEFAULT_ABBREV);
 
        return (w < sofar) ? sofar : w;