Steffen Prohaska <prohaska@xxxxxx> writes: > diff --git a/remote.c b/remote.c > index bec2ba1..28d8eb7 100644 > --- a/remote.c > +++ b/remote.c > @@ -519,10 +519,7 @@ static int count_refspec_match(const char *pattern, > char *name = refs->name; > int namelen = strlen(name); > > - if (namelen < patlen || > - memcmp(name + namelen - patlen, pattern, patlen)) > - continue; > - if (namelen != patlen && name[namelen - patlen - 1] != '/') > + if (!ref_abbrev_matches_full_with_rules(pattern, name, ref_rev_parse_rules)) > continue; I vaguely recall that in the old round this check used to be without negation '!' in the front. I think this version is correct. - 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