summaryrefslogtreecommitdiff
path: root/bulk-checkin.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-03-23 17:45:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-26 17:07:43 (GMT)
commita49d2834359a3fa943edf81e2d146fc787bc1cfe (patch)
tree3dad5b0af21e8dec35638a887141dc1bbb5958e8 /bulk-checkin.c
parent6fdb4e9f5a883aa3d96fc19b3e08d3449d53ea0c (diff)
downloadgit-a49d2834359a3fa943edf81e2d146fc787bc1cfe.zip
git-a49d2834359a3fa943edf81e2d146fc787bc1cfe.tar.gz
git-a49d2834359a3fa943edf81e2d146fc787bc1cfe.tar.bz2
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 'bulk-checkin.c')
-rw-r--r--bulk-checkin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bulk-checkin.c b/bulk-checkin.c
index 3310fd2..eadc2d5 100644
--- a/bulk-checkin.c
+++ b/bulk-checkin.c
@@ -3,6 +3,7 @@
*/
#include "cache.h"
#include "bulk-checkin.h"
+#include "repository.h"
#include "csum-file.h"
#include "pack.h"
#include "strbuf.h"
@@ -57,7 +58,7 @@ clear_exit:
strbuf_release(&packname);
/* Make objects we just wrote available to ourselves */
- reprepare_packed_git();
+ reprepare_packed_git(the_repository);
}
static int already_written(struct bulk_checkin_state *state, unsigned char sha1[])