Merge branch 'sj/ref-contents-check'
"git fsck" learned to issue warnings on "curiously formatted" ref contents that have always been taken valid but something Git wouldn't have written itself (e.g., missing terminating end-of-line after the full object name). * sj/ref-contents-check: ref: add symlink ref content check for files backend ref: check whether the target of the symref is a ref ref: add basic symref content check for files backend ref: add more strict checks for regular refs ref: port git-fsck(1) regular refs check for files backend ref: support multiple worktrees check for refs ref: initialize ref name outside of check functions ref: check the full refname instead of basename ref: initialize "fsck_ref_report" with zero
This commit is contained in:
@ -408,10 +408,11 @@ static int debug_reflog_expire(struct ref_store *ref_store, const char *refname,
|
||||
}
|
||||
|
||||
static int debug_fsck(struct ref_store *ref_store,
|
||||
struct fsck_options *o)
|
||||
struct fsck_options *o,
|
||||
struct worktree *wt)
|
||||
{
|
||||
struct debug_ref_store *drefs = (struct debug_ref_store *)ref_store;
|
||||
int res = drefs->refs->be->fsck(drefs->refs, o);
|
||||
int res = drefs->refs->be->fsck(drefs->refs, o, wt);
|
||||
trace_printf_key(&trace_refs, "fsck: %d\n", res);
|
||||
return res;
|
||||
}
|
||||
|
Reference in New Issue
Block a user