MCPcopy Create free account
hub / github.com/git/git / receive_unpack_status

Function receive_unpack_status

send-pack.c:153–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153static int receive_unpack_status(struct packet_reader *reader)
154{
155 if (packet_reader_read(reader) != PACKET_READ_NORMAL)
156 return error(_("unexpected flush packet while reading remote unpack status"));
157 if (!skip_prefix(reader->line, "unpack ", &reader->line))
158 return error(_("unable to parse remote unpack status: %s"), reader->line);
159 if (strcmp(reader->line, "ok"))
160 return error(_("remote unpack failed: %s"), reader->line);
161 return 0;
162}
163
164static int receive_status(struct repository *r,
165 struct packet_reader *reader, struct ref *refs)

Callers 1

receive_statusFunction · 0.85

Calls 2

packet_reader_readFunction · 0.85
errorFunction · 0.85

Tested by

no test coverage detected