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>
This commit is contained in:
committed by
Junio C Hamano
parent
70c70de616
commit
0a06892ddd
3
refs.c
3
refs.c
@ -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",
|
||||
|
||||
Reference in New Issue
Block a user