1. 07 Mar, 2019 1 commit
    • Jonathan Tan's avatar
      tests: define GIT_TEST_PROTOCOL_VERSION · 8cbeba06
      Jonathan Tan authored
      Define a GIT_TEST_PROTOCOL_VERSION environment variable meant to be used
      from tests. When set, this ensures protocol.version is at least the
      given value, allowing the entire test suite to be run as if this
      configuration is in place for all repositories.
      
      As of this patch, all tests pass whether GIT_TEST_PROTOCOL_VERSION is
      unset or set to 0. Some tests fail when GIT_TEST_PROTOCOL_VERSION is set
      to 1 or 2, but this will be dealt with in subsequent patches.
      
      This is based on work by Ævar Arnfjörð Bjarmason.
      Signed-off-by: 's avatarJonathan Tan <jonathantanmy@google.com>
      Signed-off-by: 's avatarJunio C Hamano <gitster@pobox.com>
      8cbeba06
  2. 14 Mar, 2018 1 commit
  3. 17 Oct, 2017 1 commit
    • Brandon Williams's avatar
      protocol: introduce protocol extension mechanisms · 373d70ef
      Brandon Williams authored
      Create protocol.{c,h} and provide functions which future servers and
      clients can use to determine which protocol to use or is being used.
      
      Also introduce the 'GIT_PROTOCOL' environment variable which will be
      used to communicate a colon separated list of keys with optional values
      to a server.  Unknown keys and values must be tolerated.  This mechanism
      is used to communicate which version of the wire protocol a client would
      like to use with a server.
      Signed-off-by: 's avatarBrandon Williams <bmwill@google.com>
      Signed-off-by: 's avatarJunio C Hamano <gitster@pobox.com>
      373d70ef