refspec: make hash size independent

Switch a use of GIT_SHA1_HEXSZ to use the_hash_algo. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

brian m. carlson committed Feb 19, 2019 at 00:05 UTC b8d45d035536b5635929d281f1b4aae004d8891b
1 file changed +1 -1
refspec.c
+1 -1
@@ -72,7 +72,7 @@ static int parse_refspec(struct refspec_item *item, const char *refspec, int fet
72 /* LHS */
73 if (!*item->src)
74 ; /* empty is ok; it means "HEAD" */
75 - else if (llen == GIT_SHA1_HEXSZ && !get_oid_hex(item->src, &unused))
75 + else if (llen == the_hash_algo->hexsz && !get_oid_hex(item->src, &unused))
76 item->exact_sha1 = 1; /* ok */
77 else if (!check_refname_format(item->src, flags))
78 ; /* valid looking ref is ok */