summaryrefslogtreecommitdiff
path: root/reachable.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-05-08 09:47:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-05-09 19:29:08 (GMT)
commit9a3acba1caead126a9c009eb00573fc9451f8cf2 (patch)
treeef8605371a65b845261e58d24624ca8beefe76cd /reachable.c
parent60901e4c220e565518c87b1349108ac7dfec0ba0 (diff)
downloadgit-9a3acba1caead126a9c009eb00573fc9451f8cf2.zip
git-9a3acba1caead126a9c009eb00573fc9451f8cf2.tar.gz
git-9a3acba1caead126a9c009eb00573fc9451f8cf2.tar.bz2
reachable.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 'reachable.c')
-rw-r--r--reachable.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/reachable.c b/reachable.c
index ed35201..d0199ca 100644
--- a/reachable.c
+++ b/reachable.c
@@ -119,8 +119,7 @@ static int add_recent_loose(const unsigned char *sha1,
*/
if (errno == ENOENT)
return 0;
- return error("unable to stat %s: %s",
- sha1_to_hex(sha1), strerror(errno));
+ return error_errno("unable to stat %s", sha1_to_hex(sha1));
}
add_recent_object(sha1, st.st_mtime, data);