transport-helper: remove unnecessary strbuf resets
authorFelipe Contreras <felipe.contreras@gmail.com>
Sun, 20 Apr 2014 18:59:30 +0000 (13:59 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Apr 2014 18:47:34 +0000 (11:47 -0700)
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport-helper.c
index 36fbf9349e08474548368f7d4360af1617198319..a90094d4a3b6132a37343be093ca78e41b246ffd 100644 (file)
@@ -876,8 +876,6 @@ static int push_refs_with_export(struct transport *transport,
 
        write_constant(helper->in, "export\n");
 
-       strbuf_reset(&buf);
-
        for (ref = remote_refs; ref; ref = ref->next) {
                char *private;
                unsigned char sha1[20];
@@ -892,8 +890,6 @@ static int push_refs_with_export(struct transport *transport,
 
                if (ref->peer_ref) {
                        if (strcmp(ref->name, ref->peer_ref->name)) {
-                               struct strbuf buf = STRBUF_INIT;
-
                                if (!ref->deletion) {
                                        const char *name;
                                        int flag;