summaryrefslogtreecommitdiff
path: root/refs/packed-backend.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-08-27 14:04:49 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-08-27 14:04:49 -0700
commit98df75b286f4addaeebde96fc2e85d67a046eea2 (patch)
tree037a1dda142e4b32ecc8ca0ccd93da21ff1288d6 /refs/packed-backend.c
parentMerge branch 'rz/complete-more-options' (diff)
parentrefs: read FETCH_HEAD and MERGE_HEAD generically (diff)
downloadtgif-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.c1
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);