From: Michael Haggerty <mhagger@xxxxxxxxxxxx> ...instead of own inline code. Signed-off-by: Michael Haggerty <mhagger@xxxxxxxxxxxx> --- refs.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/refs.c b/refs.c index a40dfa5..67df3a6 100644 --- a/refs.c +++ b/refs.c @@ -548,8 +548,7 @@ const char *resolve_ref(const char *ref, unsigned char *sha1, int reading, int * if (len < 0) return NULL; buffer[len] = 0; - if (!prefixcmp(buffer, "refs/") && - !check_refname_format(buffer, 0)) { + if (!check_refname_format(buffer, REFNAME_FULL)) { strcpy(ref_buffer, buffer); ref = ref_buffer; if (flag) -- 1.7.7 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html