diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2020-05-25 21:58:54 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-05-27 19:07:06 +0200 |
commit | 9a9f0d3fc0888599723812be62fa2d7b3cc4d2d6 (patch) | |
tree | fbe25d80f7d8834a26e0a453214620901308398b /pkt-line.c | |
parent | connect: add function to fetch value of a v2 server capability (diff) | |
download | git-9a9f0d3fc0888599723812be62fa2d7b3cc4d2d6.tar.xz git-9a9f0d3fc0888599723812be62fa2d7b3cc4d2d6.zip |
pkt-line: add a member for hash algorithm
Add a member for the hash algorithm currently in use to the packet
reader so it can parse references correctly.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pkt-line.c')
-rw-r--r-- | pkt-line.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkt-line.c b/pkt-line.c index a0e87b1e81..a4aea075de 100644 --- a/pkt-line.c +++ b/pkt-line.c @@ -479,6 +479,7 @@ void packet_reader_init(struct packet_reader *reader, int fd, reader->buffer_size = sizeof(packet_buffer); reader->options = options; reader->me = "git"; + reader->hash_algo = &hash_algos[GIT_HASH_SHA1]; } enum packet_read_status packet_reader_read(struct packet_reader *reader) |