From 01b9d35f1a0188dadc1ee09f5e4dd98acc38ff09 Mon Sep 17 00:00:00 2001 From: zeripath Date: Wed, 13 Oct 2021 19:20:11 +0100 Subject: 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 --- modules/setting/git.go | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/setting') diff --git a/modules/setting/git.go b/modules/setting/git.go index aa838a8d64..aaa65ed81c 100644 --- a/modules/setting/git.go +++ b/modules/setting/git.go @@ -26,6 +26,7 @@ var ( EnableAutoGitWireProtocol bool PullRequestPushMessage bool LargeObjectThreshold int64 + DisableCoreProtectNTFS bool Timeout struct { Default int Migrate int -- cgit v1.2.3