Skip to content

Commit 456bab8

Browse files
avargitster
authored andcommitted
config doc: elaborate on what transfer.fsckObjects does
The existing documentation led the user to believe that all we were doing were basic reachability sanity checks, but that hasn't been true for a very long time. Update the description to match reality, and note the caveat that there's a quarantine for accepting pushes, but not for fetching. Also mention that the fsck checks for security issues, which was my initial motivation for writing this fetch.fsck.* series. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent b2558ab commit 456bab8

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Documentation/config.txt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3397,8 +3397,17 @@ transfer.fsckObjects::
33973397
Defaults to false.
33983398
+
33993399
When set, the fetch or receive will abort in the case of a malformed
3400-
object or a broken link. The result of an abort are only dangling
3401-
objects.
3400+
object or a link to a nonexistent object. In addition, various other
3401+
issues are checked for, including legacy issues (see `fsck.<msg-id>`),
3402+
and potential security issues like the existence of a `.GIT` directory
3403+
or a malicious `.gitmodules` file (see the release notes for v2.2.1
3404+
and v2.17.1 for details). Other sanity and security checks may be
3405+
added in future releases.
3406+
+
3407+
On the receiving side, failing fsckObjects will make those objects
3408+
unreachable, see "QUARANTINE ENVIRONMENT" in
3409+
linkgit:git-receive-pack[1]. On the fetch side, malformed objects will
3410+
instead be left unreferenced in the repository.
34023411

34033412
transfer.hideRefs::
34043413
String(s) `receive-pack` and `upload-pack` use to decide which

0 commit comments

Comments
 (0)