Merge pull request #7183 from weihanglo/smart

fix(smart): keep caps across RPC stream resets
This commit is contained in:
Edward Thomson
2026-01-11 00:55:29 +00:00
committed by GitHub

View File

@@ -64,14 +64,14 @@ GIT_INLINE(int) git_smart__reset_stream(transport_smart *t, bool close_subtransp
if (t->wrapped->close(t->wrapped) < 0)
return -1;
git__free(t->caps.object_format);
t->caps.object_format = NULL;
git__free(t->caps.agent);
t->caps.agent = NULL;
}
git__free(t->caps.object_format);
t->caps.object_format = NULL;
git__free(t->caps.agent);
t->caps.agent = NULL;
return 0;
}