transport-helper: remove unnecessary strbuf resets

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Felipe Contreras committed Apr 20, 2014 at 13:59 UTC e143ef4f6b08e0f948180f28ad3ba77c9a2e0a61
1 file changed -4
transport-helper.c
-4
@@ -876,8 +876,6 @@ static int push_refs_with_export(struct transport *transport,
876
877 write_constant(helper->in, "export\n");
878
879 - strbuf_reset(&buf);
880 -
879 for (ref = remote_refs; ref; ref = ref->next) {
880 char *private;
881 unsigned char sha1[20];
@@ -892,8 +890,6 @@ static int push_refs_with_export(struct transport *transport,
890
891 if (ref->peer_ref) {
892 if (strcmp(ref->name, ref->peer_ref->name)) {
895 - struct strbuf buf = STRBUF_INIT;
896 -
893 if (!ref->deletion) {
894 const char *name;
895 int flag;