refspec: convert valid_fetch_refspec to use parse_refspec
[gitweb.git] / builtin / receive-pack.c
index 4b68a28e92e726b4d16c4d3a0a339feb1aeacaee..0dd163280d43c9d23e87fecc049ed03332aada0b 100644 (file)
@@ -1965,6 +1965,12 @@ int cmd_receive_pack(int argc, const char **argv, const char *prefix)
                unpack_limit = receive_unpack_limit;
 
        switch (determine_protocol_version_server()) {
+       case protocol_v2:
+               /*
+                * push support for protocol v2 has not been implemented yet,
+                * so ignore the request to use v2 and fallback to using v0.
+                */
+               break;
        case protocol_v1:
                /*
                 * v1 is just the original protocol with a version string,