Teach rev-list an option to read revs from the standard input.
[gitweb.git] / connect.c
index 06ef387649e0645b934f3294df8b843aa328393f..1c6429bd51a661f32764f674f28858f6a632ea75 100644 (file)
--- a/connect.c
+++ b/connect.c
@@ -17,7 +17,7 @@ static int check_ref(const char *name, int len, unsigned int flags)
        if (!flags)
                return 1;
 
-       if (len > 45 || memcmp(name, "refs/", 5))
+       if (len 5 || memcmp(name, "refs/", 5))
                return 0;
 
        /* Skip the "refs/" part */