transport-helper: remove unnecessary strbuf resets
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
f3d0376356
commit
e143ef4f6b
|
@ -876,8 +876,6 @@ static int push_refs_with_export(struct transport *transport,
|
||||||
|
|
||||||
write_constant(helper->in, "export\n");
|
write_constant(helper->in, "export\n");
|
||||||
|
|
||||||
strbuf_reset(&buf);
|
|
||||||
|
|
||||||
for (ref = remote_refs; ref; ref = ref->next) {
|
for (ref = remote_refs; ref; ref = ref->next) {
|
||||||
char *private;
|
char *private;
|
||||||
unsigned char sha1[20];
|
unsigned char sha1[20];
|
||||||
|
@ -892,8 +890,6 @@ static int push_refs_with_export(struct transport *transport,
|
||||||
|
|
||||||
if (ref->peer_ref) {
|
if (ref->peer_ref) {
|
||||||
if (strcmp(ref->name, ref->peer_ref->name)) {
|
if (strcmp(ref->name, ref->peer_ref->name)) {
|
||||||
struct strbuf buf = STRBUF_INIT;
|
|
||||||
|
|
||||||
if (!ref->deletion) {
|
if (!ref->deletion) {
|
||||||
const char *name;
|
const char *name;
|
||||||
int flag;
|
int flag;
|
||||||
|
|
Loading…
Reference in New Issue