diff options
author | Patrick Steinhardt <ps@pks.im> | 2023-12-14 16:37:13 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-12-14 20:25:27 +0300 |
commit | 0a06892ddde5bc3a82a4fe2963e3ea294252ffdd (patch) | |
tree | afe9ab3282dac2c47c2c40f36123c7109a4177fa /refs.c | |
parent | 70c70de616c306cd4bb7c70426e394d08f929dff (diff) |
bisect: consistently write BISECT_EXPECTED_REV via the refdb
We're inconsistently writing BISECT_EXPECTED_REV both via the filesystem
and via the refdb, which violates the newly established rules for how
special refs must be treated. This works alright in practice with the
reffiles reference backend, but will cause bugs once we gain additional
backends.
Fix this issue and consistently write BISECT_EXPECTED_REV via the refdb
so that it is no longer a special ref.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.c')
-rw-r--r-- | refs.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1840,6 +1840,8 @@ static int is_special_ref(const char *refname) * There are some exceptions that you might expect to see on this list * but which are handled exclusively via the reference backend: * + * - BISECT_EXPECTED_REV + * * - CHERRY_PICK_HEAD * * - HEAD @@ -1857,7 +1859,6 @@ static int is_special_ref(const char *refname) */ static const char * const special_refs[] = { "AUTO_MERGE", - "BISECT_EXPECTED_REV", "FETCH_HEAD", "MERGE_AUTOSTASH", "MERGE_HEAD", |