Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
transport-helper: remove unnecessary strbuf resets
author
Felipe Contreras
<felipe.contreras@gmail.com>
Sun, 20 Apr 2014 18:59:30 +0000
(13:59 -0500)
committer
Junio 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
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
f3d0376
)
diff --git
a/transport-helper.c
b/transport-helper.c
index 36fbf9349e08474548368f7d4360af1617198319..a90094d4a3b6132a37343be093ca78e41b246ffd 100644
(file)
--- 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;