forked from git/git
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'sj/ref-contents-check' into next
"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
- Loading branch information
Showing
11 changed files
with
790 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,12 +19,18 @@ | |
`badParentSha1`:: | ||
(ERROR) A commit object has a bad parent sha1. | ||
|
||
`badRefContent`:: | ||
(ERROR) A ref has bad content. | ||
|
||
`badRefFiletype`:: | ||
(ERROR) A ref has a bad file type. | ||
|
||
`badRefName`:: | ||
(ERROR) A ref has an invalid format. | ||
|
||
`badReferentName`:: | ||
(ERROR) The referent name of a symref is invalid. | ||
|
||
`badTagName`:: | ||
(INFO) A tag has an invalid format. | ||
|
||
|
@@ -170,6 +176,35 @@ | |
`nullSha1`:: | ||
(WARN) Tree contains entries pointing to a null sha1. | ||
|
||
`refMissingNewline`:: | ||
(INFO) A loose ref that does not end with newline(LF). As | ||
valid implementations of Git never created such a loose ref | ||
file, it may become an error in the future. Report to the | ||
[email protected] mailing list if you see this error, as | ||
we need to know what tools created such a file. | ||
|
||
`symlinkRef`:: | ||
(INFO) A symbolic link is used as a symref. Report to the | ||
[email protected] mailing list if you see this error, as we | ||
are assessing the feasibility of dropping the support to drop | ||
creating symbolic links as symrefs. | ||
|
||
`symrefTargetIsNotARef`:: | ||
(INFO) The target of a symbolic reference points neither to | ||
a root reference nor to a reference starting with "refs/". | ||
Although we allow create a symref pointing to the referent which | ||
is outside the "ref" by using `git symbolic-ref`, we may tighten | ||
the rule in the future. Report to the [email protected] | ||
mailing list if you see this error, as we need to know what tools | ||
created such a file. | ||
|
||
`trailingRefContent`:: | ||
(INFO) A loose ref has trailing content. As valid implementations | ||
of Git never created such a loose ref file, it may become an | ||
error in the future. Report to the [email protected] mailing | ||
list if you see this error, as we need to know what tools | ||
created such a file. | ||
|
||
`treeNotSorted`:: | ||
(ERROR) A tree is not properly sorted. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.