summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-03-23 17:45:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-26 17:07:43 (GMT)
commit5babff16d9efdef8c3224d386db0b8ab2a0930d5 (patch)
tree0c479ce8d74b1bf008981d4bec6d4d2b709e54ef /http.c
parentc235beac4e51ce7ebfefe6c9c38d3b8906222ed2 (diff)
downloadgit-5babff16d9efdef8c3224d386db0b8ab2a0930d5.zip
git-5babff16d9efdef8c3224d386db0b8ab2a0930d5.tar.gz
git-5babff16d9efdef8c3224d386db0b8ab2a0930d5.tar.bz2
packfile: allow install_packed_git to handle arbitrary repositories
This conversion was done without the #define trick used in the earlier series refactoring to have better repository access, because this function is easy to review, as it only has one caller and all lines but the first two are converted. We must not convert 'pack_open_fds' to be a repository specific variable, as it is used to monitor resource usage of the machine that Git executes on. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> 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 'http.c')
-rw-r--r--http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.c b/http.c
index 4d613d5..111e3c1 100644
--- a/http.c
+++ b/http.c
@@ -2134,7 +2134,7 @@ int finish_http_pack_request(struct http_pack_request *preq)
return -1;
}
- install_packed_git(p);
+ install_packed_git(the_repository, p);
free(tmp_idx);
return 0;
}