protocol: introduce enum protocol_version value protocol_v2
[gitweb.git] / builtin / receive-pack.c
index b7ce7c7f5275febbf6db6b71e3b610b09a4fe191..3656e94fdb79da622dad773e0681a7438ce25504 100644 (file)
@@ -1963,6 +1963,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,