diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-03-04 10:52:58 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-03-04 10:52:59 -0800 |
| commit | 1d0a2acb78f157d39937a088548e561b27722e8d (patch) | |
| tree | 4251f1f0f2a4ce4a6ee6f71e75d17d0bdbe4f948 /refs/packed-backend.c | |
| parent | 50d063e335afd5828fbb9de2f2b2fb44fd884d2b (diff) | |
| parent | 53592d68e86814fcc4a8df6cc38340597e56fe5a (diff) | |
| download | git-1d0a2acb78f157d39937a088548e561b27722e8d.tar.xz | |
Merge branch 'kn/ref-location'
Allow the directory in which reference backends store their data to
be specified.
* kn/ref-location:
refs: add GIT_REFERENCE_BACKEND to specify reference backend
refs: allow reference location in refstorage config
refs: receive and use the reference storage payload
refs: move out stub modification to generic layer
refs: extract out `refs_create_refdir_stubs()`
setup: don't modify repo in `create_reference_database()`
Diffstat (limited to 'refs/packed-backend.c')
| -rw-r--r-- | refs/packed-backend.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/refs/packed-backend.c b/refs/packed-backend.c index 59b3ecb9d6..8872a7fe18 100644 --- a/refs/packed-backend.c +++ b/refs/packed-backend.c @@ -211,7 +211,12 @@ static size_t snapshot_hexsz(const struct snapshot *snapshot) return snapshot->refs->base.repo->hash_algo->hexsz; } +/* + * Since packed-refs is only stored in the common dir, don't parse the + * payload and rely on the files-backend to set 'gitdir' correctly. + */ struct ref_store *packed_ref_store_init(struct repository *repo, + const char *payload UNUSED, const char *gitdir, unsigned int store_flags) { |
