Skip to content

Commit

Permalink
transport-helper: remove unnecessary strbuf resets
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Felipe Contreras authored and Junio C Hamano committed Apr 21, 2014
1 parent f3d0376 commit e143ef4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions transport-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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;
Expand Down

0 comments on commit e143ef4

Please sign in to comment.