The document for running Git wire protocol v2 states that in order to invoke git-upload-pack
with protocol v2, one needs to run it with an environment variable GIT_PROTOCOL
containing version=2
. I do that by running in terminal:
GIT_PROTOCOL='version=2' bash -c 'git upload-pack .'
But I still get v1 protocol running. I see that from the response of v1 form:
00f2562e09028aef13e2e4fa9483bf32a26329de78e1 HEADmulti_ack thin-pack side-band side-band-64k ofs-delta shallow deepen-since deepen-not deepen-relative no-progress include-tag multi_ack_detailed symref=HEAD:refs/heads/master agent=git/2.15.1
<truncated>
Could somebody help me to either find what I'm doing wrong or understand how to invoke git-upload-pack
with wire protocol version 2?