Merge branch 'bw/protocol-v2' into HEAD
[gitweb.git] / builtin / receive-pack.c
index c4272fbc96dc274f3287ab01f3fbe57c2cdb9d9c..4fadf7e41e37bd0e6457c6bdbbec176b2152c070 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,