diff options
| author | brian m. carlson <sandals@crustytoothpaste.net> | 2020-05-25 19:59:17 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2020-05-27 10:07:07 -0700 |
| commit | 9de0dd361c9ea2ca6eca14a7dd43fe11d170a253 (patch) | |
| tree | 922a7a597fbb1ed8677972756cfebf098d0a228c /commit-graph.c | |
| parent | connect: parse v2 refs with correct hash algorithm (diff) | |
| download | git-9de0dd361c9ea2ca6eca14a7dd43fe11d170a253.tar.gz git-9de0dd361c9ea2ca6eca14a7dd43fe11d170a253.zip | |
serve: advertise object-format capability for protocol v2
In order to communicate the protocol supported by the server side, add
support for advertising the object-format capability. We check that the
client side sends us an identical algorithm if it sends us its own
object-format capability, and assume it speaks SHA-1 if not.
In the test, when we're using an algorithm other than SHA-1, we need to
specify the algorithm in use so we don't get a failure with an "unknown
format" message. Add a test that we handle a mismatched algorithm.
Remove the test_oid_init call since it's no longer necessary.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions
