git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
f3d0376
)
transport-helper: remove unnecessary strbuf resets
author
Felipe Contreras
<redacted>
Sun, 20 Apr 2014 18:59:30 +0000
(13:59 -0500)
committer
Junio C Hamano
<redacted>
Mon, 21 Apr 2014 18:47:34 +0000
(11:47 -0700)
Signed-off-by: Felipe Contreras <redacted>
Signed-off-by: Junio C Hamano <redacted>
transport-helper.c
patch
|
blob
|
history
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;
git clone https://git.99rst.org/PROJECT