From: Michael Haggerty <mhagger@xxxxxxxxxxxx> Instead of manually skipping over "refs/", let check_refname_format() handle the whole refname. Signed-off-by: Michael Haggerty <mhagger@xxxxxxxxxxxx> --- remote.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/remote.c b/remote.c index e52aa9b..30ee6d8 100644 --- a/remote.c +++ b/remote.c @@ -1595,7 +1595,7 @@ static int one_local_ref(const char *refname, const unsigned char *sha1, int fla int len; /* we already know it starts with refs/ to get here */ - if (check_refname_format(refname + 5, 0)) + if (check_refname_format(refname, REFNAME_FULL)) return 0; len = strlen(refname) + 1; -- 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