path: root/http-walker.c
diff options
authorShawn O. Pearce <>2010-04-17 20:07:38 (GMT)
committerJunio C Hamano <>2010-04-17 20:55:46 (GMT)
commit0da8b2e7c80a6dd9743e5233cdc5acd836c9a8d3 (patch)
tree1c8f8548342df22ca2728428f0dcf7f0f0890a22 /http-walker.c
parent3065274c58a4f4d0c6eef7e29a1484cf2c288131 (diff)
http.c: Don't store destination name in request structures
The destination name within the object store is easily computed on demand, reusing a static buffer held by sha1_file.c. We don't need to copy the entire path into the request structure for safe keeping, when it can be easily reformatted after the download has been completed. This reduces the size of the per-request structure, and removes yet another PATH_MAX based limit. Signed-off-by: Shawn O. Pearce <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'http-walker.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/http-walker.c b/http-walker.c
index 700bc13..3a726de 100644
--- a/http-walker.c
+++ b/http-walker.c
@@ -510,7 +510,7 @@ static int fetch_object(struct walker *walker, struct alt_base *repo, unsigned c
ret = error("File %s has bad hash", hex);
} else if (req->rename < 0) {
ret = error("unable to write sha1 filename %s",
- req->filename);
+ sha1_file_name(req->sha1));