Commit 5dd34702 by Edward Thomson

Merge branch 'nelhage/smart-no-pack'

parents e6cdd17c 9286e413
......@@ -70,6 +70,12 @@ int git_smart__store_refs(transport_smart *t, int flushes)
return -1;
}
if (pkt->type == GIT_PKT_PACK) {
giterr_set(GITERR_NET, "unexpected packfile");
git__free(pkt);
return -1;
}
if (pkt->type != GIT_PKT_FLUSH && git_vector_insert(refs, pkt) < 0)
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment