]> git.99rst.org Git - git.git/commit
environment: use 'repo->initialized' for repo_protect_hfs() and repo_protect_ntfs()
authorTian Yuchen <redacted>
Sat, 20 Jun 2026 14:09:57 +0000 (22:09 +0800)
committerJunio C Hamano <redacted>
Sat, 20 Jun 2026 15:16:40 +0000 (08:16 -0700)
commita472af8bfdebe98e4e48a76b83e5424708cb42ef
treecf0d9ef44929e2b07c47ccc4cac71cdd2bf9de10
parent71386c21dfb7cea181df6707c34cd79b10fc0a2b
environment: use 'repo->initialized' for repo_protect_hfs() and repo_protect_ntfs()

To match how we refrain from calling repo_config_values() on an
uninitialized instance of a repository object in other two topics
that deal with ignore_case and trust_executable_bit, check the
repo->initialized bit instead of the repo->gitdir member.

Mentored-by: Christian Couder <redacted>
Mentored-by: Ayush Chandekar <redacted>
Mentored-by: Olamide Caleb Bello <redacted>
Signed-off-by: Tian Yuchen <redacted>
Signed-off-by: Junio C Hamano <redacted>
environment.c
environment.h
git clone https://git.99rst.org/PROJECT