diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-01-12 10:03:05 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-01-12 06:55:41 -0800 |
| commit | 9727336b31c055e4507248703b8a4a8ed039dc06 (patch) | |
| tree | 5833f6aa7d7609de428745188d3c4eba40517534 /builtin/fsck.c | |
| parent | 46d611cadab500ca2b458b2fda7008c41b174011 (diff) | |
| download | git-9727336b31c055e4507248703b8a4a8ed039dc06.tar.xz | |
builtin/fsck: move generic HEAD check into `refs_fsck()`
Move the check that detects "HEAD" refs that do not point at a branch
into `refs_fsck()`. This follows the same motivation as the preceding
commit.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fsck.c')
| -rw-r--r-- | builtin/fsck.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/builtin/fsck.c b/builtin/fsck.c index 4dd4d74d1e..5dda441f45 100644 --- a/builtin/fsck.c +++ b/builtin/fsck.c @@ -728,13 +728,6 @@ static void fsck_head_link(const char *head_ref_name, error(_("invalid %s"), head_ref_name); return; } - if (strcmp(*head_points_at, head_ref_name) && - !starts_with(*head_points_at, "refs/heads/")) { - errors_found |= ERROR_REFS; - error(_("%s points to something strange (%s)"), - head_ref_name, *head_points_at); - return; - } return; } |
