aboutsummaryrefslogtreecommitdiff
path: root/http-fetch.c
diff options
context:
space:
mode:
authorMark Wooding <mdw@distorted.org.uk>2006-02-01 11:44:35 +0000
committerJunio C Hamano <junkio@cox.net>2006-02-05 16:49:16 -0800
commit7b934ec015363dd8881d249838ab3623a2d345fd (patch)
tree0900494fdae7c0110fd309afb844a05ccf60fa31 /http-fetch.c
parent09db444fdbf647c95de698d243425a7700b91b2f (diff)
downloadgit-7b934ec015363dd8881d249838ab3623a2d345fd.tar.gz
git-7b934ec015363dd8881d249838ab3623a2d345fd.tar.xz
http-fetch: Fix message reporting rename of object file.
move_temp_to_file returns 0 or -1. This is not a good thing to pass to strerror(3). Fortunately, someone already reported the error, so don't worry too much. Signed-off-by: Mark Wooding <mdw@distorted.org.uk> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'http-fetch.c')
-rw-r--r--http-fetch.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/http-fetch.c b/http-fetch.c
index 7b1b2a02d..555e95d5a 100644
--- a/http-fetch.c
+++ b/http-fetch.c
@@ -822,9 +822,8 @@ static int fetch_object(struct alt_base *repo, unsigned char *sha1)
} else if (memcmp(obj_req->sha1, obj_req->real_sha1, 20)) {
ret = error("File %s has bad hash\n", hex);
} else if (obj_req->rename < 0) {
- ret = error("unable to write sha1 filename %s: %s",
- obj_req->filename,
- strerror(obj_req->rename));
+ ret = error("unable to write sha1 filename %s",
+ obj_req->filename);
}
release_object_request(obj_req);