diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-03-26 16:26:09 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-03-26 16:26:10 +0900 |
| commit | de35b7b3ffb6e642b47f748eb38e31182377fb0a (patch) | |
| tree | 02bd656487b73596cda06df6415dd7fb98402a67 /builtin/refs.c | |
| parent | f50df872a45c4a1010dc5378055b1be0e844add1 (diff) | |
| parent | c1cf918d3adbe832fdaf278a23151502be255bb2 (diff) | |
| download | git-de35b7b3ffb6e642b47f748eb38e31182377fb0a.tar.gz | |
Merge branch 'sj/ref-consistency-checks-more'
"git fsck" becomes more careful when checking the refs.
* sj/ref-consistency-checks-more:
builtin/fsck: add `git refs verify` child process
packed-backend: check whether the "packed-refs" is sorted
packed-backend: add "packed-refs" entry consistency check
packed-backend: check whether the refname contains NUL characters
packed-backend: add "packed-refs" header consistency check
packed-backend: check if header starts with "# pack-refs with: "
packed-backend: check whether the "packed-refs" is regular file
builtin/refs: get worktrees without reading head information
t0602: use subshell to ensure working directory unchanged
Diffstat (limited to 'builtin/refs.c')
| -rw-r--r-- | builtin/refs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/refs.c b/builtin/refs.c index 44d592a94c..998d2a2c1c 100644 --- a/builtin/refs.c +++ b/builtin/refs.c @@ -91,7 +91,7 @@ static int cmd_refs_verify(int argc, const char **argv, const char *prefix, git_config(git_fsck_config, &fsck_refs_options); prepare_repo_settings(the_repository); - worktrees = get_worktrees(); + worktrees = get_worktrees_without_reading_head(); for (size_t i = 0; worktrees[i]; i++) ret |= refs_fsck(get_worktree_ref_store(worktrees[i]), &fsck_refs_options, worktrees[i]); |
