diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-03-10 08:13:22 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-03-10 13:16:18 -0700 |
| commit | 2582846f2fe21b23fe7c567e030510960f135160 (patch) | |
| tree | 1ccb5d1c219056c6c038b04be555500cb3aa3000 /builtin/fast-import.c | |
| parent | object: stop depending on `the_repository` (diff) | |
| download | git-2582846f2fe21b23fe7c567e030510960f135160.tar.gz git-2582846f2fe21b23fe7c567e030510960f135160.zip | |
pack-write: stop depending on `the_repository` and `the_hash_algo`
There are a couple of functions in "pack-write.c" that implicitly depend
on `the_repository` or `the_hash_algo`. Remove this dependency by
injecting the repository via a parameter and adapt callers accordingly.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fast-import.c')
| -rw-r--r-- | builtin/fast-import.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/fast-import.c b/builtin/fast-import.c index 86e6e75481..e1758aa951 100644 --- a/builtin/fast-import.c +++ b/builtin/fast-import.c @@ -798,7 +798,7 @@ static const char *create_index(void) if (c != last) die("internal consistency error creating the index"); - tmpfile = write_idx_file(the_hash_algo, NULL, idx, object_count, + tmpfile = write_idx_file(the_repository, NULL, idx, object_count, &pack_idx_opts, pack_data->hash); free(idx); return tmpfile; |
