Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ls-refs.c')
-rw-r--r--ls-refs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ls-refs.c b/ls-refs.c
index 84021416ca..5ad521c6c7 100644
--- a/ls-refs.c
+++ b/ls-refs.c
@@ -107,7 +107,7 @@ static int send_ref(const char *refname, const struct object_id *oid,
}
strbuf_addch(&data->buf, '\n');
- packet_write(1, data->buf.buf, data->buf.len);
+ packet_fwrite(stdout, data->buf.buf, data->buf.len);
return 0;
}
@@ -173,7 +173,7 @@ int ls_refs(struct repository *r, struct strvec *keys,
strvec_push(&data.prefixes, "");
for_each_fullref_in_prefixes(get_git_namespace(), data.prefixes.v,
send_ref, &data, 0);
- packet_flush(1);
+ packet_fflush(stdout);
strvec_clear(&data.prefixes);
strbuf_release(&data.buf);
return 0;