diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-08-27 14:04:49 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-08-27 14:04:49 -0700 |
commit | 98df75b286f4addaeebde96fc2e85d67a046eea2 (patch) | |
tree | 037a1dda142e4b32ecc8ca0ccd93da21ff1288d6 /refs/packed-backend.c | |
parent | Merge branch 'rz/complete-more-options' (diff) | |
parent | refs: read FETCH_HEAD and MERGE_HEAD generically (diff) | |
download | tgif-98df75b286f4addaeebde96fc2e85d67a046eea2.tar.xz |
Merge branch 'hn/refs-fetch-head-is-special'
The FETCH_HEAD is now always read from the filesystem regardless of
the ref backend in use, as its format is much richer than the
normal refs, and written directly by "git fetch" as a plain file..
* hn/refs-fetch-head-is-special:
refs: read FETCH_HEAD and MERGE_HEAD generically
refs: move gitdir into base ref_store
refs: fix comment about submodule ref_stores
refs: split off reading loose ref data in separate function
Diffstat (limited to 'refs/packed-backend.c')
-rw-r--r-- | refs/packed-backend.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/refs/packed-backend.c b/refs/packed-backend.c index 4458a0f69c..b912f2505f 100644 --- a/refs/packed-backend.c +++ b/refs/packed-backend.c @@ -200,6 +200,7 @@ struct ref_store *packed_ref_store_create(const char *path, struct ref_store *ref_store = (struct ref_store *)refs; base_ref_store_init(ref_store, &refs_be_packed); + ref_store->gitdir = xstrdup(path); refs->store_flags = store_flags; refs->path = xstrdup(path); |