summaryrefslogtreecommitdiff
path: root/upload-pack.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-05-08 16:47:59 +0700
committerJunio C Hamano <gitster@pobox.com>2016-05-09 12:29:08 -0700
commitd2b6afa2cb2e56d506442dfba96aa08b54d71f6b (patch)
tree34f1f3be4dc175fd2f2b52656aeee2c84699f25a /upload-pack.c
parent43c728e2c2fe81cf401f39a60ab167a9ed542428 (diff)
downloadgit-d2b6afa2cb2e56d506442dfba96aa08b54d71f6b.tar.gz
upload-pack.c: use error_errno()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'upload-pack.c')
-rw-r--r--upload-pack.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/upload-pack.c b/upload-pack.c
index b3f6653ffd..b1c3e76d92 100644
--- a/upload-pack.c
+++ b/upload-pack.c
@@ -177,8 +177,7 @@ static void create_pack_file(void)
if (ret < 0) {
if (errno != EINTR) {
- error("poll failed, resuming: %s",
- strerror(errno));
+ error_errno("poll failed, resuming");
sleep(1);
}
continue;