blob: 3b8868c97b213dbddb3185a7f00303c695757d8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
diff --git a/setup.c b/setup.c
index 18927a8..ac6823f 100644
--- a/setup.c
+++ b/setup.c
@@ -1159,6 +1159,9 @@ static int ensure_valid_ownership(const char *gitfile,
const char *worktree, const char *gitdir,
struct strbuf *report)
{
+ if (git_env_bool("GIT_NO_CHECK_OWNERSHIP", 0))
+ return 1;
+
struct safe_directory_data data = { 0 };
if (!git_env_bool("GIT_TEST_ASSUME_DIFFERENT_OWNER", 0) &&
|