mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
Merge pull request #7183 from weihanglo/smart
fix(smart): keep caps across RPC stream resets
This commit is contained in:
@@ -64,14 +64,14 @@ GIT_INLINE(int) git_smart__reset_stream(transport_smart *t, bool close_subtransp
|
|||||||
|
|
||||||
if (t->wrapped->close(t->wrapped) < 0)
|
if (t->wrapped->close(t->wrapped) < 0)
|
||||||
return -1;
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user