]> source.dussan.org Git - gitea.git/commit
Disable core.protectNTFS (#17300)
authorzeripath <art27@cantab.net>
Wed, 13 Oct 2021 18:20:11 +0000 (19:20 +0100)
committerGitHub <noreply@github.com>
Wed, 13 Oct 2021 18:20:11 +0000 (14:20 -0400)
commit01b9d35f1a0188dadc1ee09f5e4dd98acc38ff09
tree0eeb51c7bd5baa72ba07cbab71bc05448e16aa10
parent429258cff3f5ff6ef94ae33c587f2d899c40b4c1
Disable core.protectNTFS (#17300)

core.protectNTFS protects NTFS from files which may be difficult to remove or interact
with using the win32 api, however, it also appears to prevent such files from
being entered into the git indexes - fundamentally causing breakages with PRs that
affect these files. However, deliberately setting this to false may cause security
issues due to the remain sparse checkout of files in the merge pipeline.

The only sensible option therefore is to provide an optional setting which admins
could set which would forcibly switch this off if they are affected by this issue.

Fix #17092

Signed-off-by: Andrew Thornton <art27@cantab.net>
custom/conf/app.example.ini
docs/content/doc/advanced/config-cheat-sheet.en-us.md
modules/git/git.go
modules/setting/git.go