summaryrefslogtreecommitdiff
path: root/transport-helper.c
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2014-04-20 18:59:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-04-21 18:47:34 (GMT)
commite143ef4f6b08e0f948180f28ad3ba77c9a2e0a61 (patch)
tree692e85ecc3c8d05f66f25677d0c00d7aa120ff67 /transport-helper.c
parentf3d0376356756c55a85a3d745858a42c26956e74 (diff)
downloadgit-e143ef4f6b08e0f948180f28ad3ba77c9a2e0a61.zip
git-e143ef4f6b08e0f948180f28ad3ba77c9a2e0a61.tar.gz
git-e143ef4f6b08e0f948180f28ad3ba77c9a2e0a61.tar.bz2
transport-helper: remove unnecessary strbuf resets
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport-helper.c')
-rw-r--r--transport-helper.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/transport-helper.c b/transport-helper.c
index 36fbf93..a90094d 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -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;