summaryrefslogtreecommitdiffstats
path: root/sha1_file.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-03-23 18:45:21 +0100
committerJunio C Hamano <gitster@pobox.com>2018-03-26 19:07:43 +0200
commita49d2834359a3fa943edf81e2d146fc787bc1cfe (patch)
tree3dad5b0af21e8dec35638a887141dc1bbb5958e8 /sha1_file.c
parentpackfile: add repository argument to prepare_packed_git (diff)
downloadgit-a49d2834359a3fa943edf81e2d146fc787bc1cfe.tar.xz
git-a49d2834359a3fa943edf81e2d146fc787bc1cfe.zip
packfile: add repository argument to reprepare_packed_git
See previous patch for explanation. 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 '')
-rw-r--r--sha1_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_file.c b/sha1_file.c
index 0989bbd948..9c024cd957 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -1274,7 +1274,7 @@ int sha1_object_info_extended(const unsigned char *sha1, struct object_info *oi,
return 0;
/* Not a loose object; someone else may have just packed it. */
- reprepare_packed_git();
+ reprepare_packed_git(the_repository);
if (find_pack_entry(real, &e))
break;