mirror of
https://github.com/git/git.git
synced 2026-01-09 17:46:37 +00:00
packfile: pass down repository to odb_pack_name
The function `odb_pack_name` currently relies on the global variable `the_repository`. To eliminate global variable usage in `packfile.c`, we should progressively shift the dependency on the_repository to higher layers. Signed-off-by: Karthik Nayak <karthik.188@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
4f9e6bd492
commit
873b00597b
2
http.c
2
http.c
@@ -2581,7 +2581,7 @@ struct http_pack_request *new_direct_http_pack_request(
|
||||
|
||||
preq->url = url;
|
||||
|
||||
odb_pack_name(&preq->tmpfile, packed_git_hash, "pack");
|
||||
odb_pack_name(the_repository, &preq->tmpfile, packed_git_hash, "pack");
|
||||
strbuf_addstr(&preq->tmpfile, ".temp");
|
||||
preq->packfile = fopen(preq->tmpfile.buf, "a");
|
||||
if (!preq->packfile) {
|
||||
|
||||
Reference in New Issue
Block a user