<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">Neuter the "safe directory" feature, except for tests.
--- a/setup.c
+++ b/setup.c
@@ -1316,7 +1316,9 @@ static int ensure_valid_ownership(const char *gitfile,
 	git_protected_config(safe_directory_cb, &amp;data);
 
 	free(data.path);
-	return data.is_safe;
+	if (git_env_bool("GIT_TEST_ASSUME_DIFFERENT_OWNER", 0))
+		return data.is_safe;
+	return 1;
 }
 
 void die_upon_dubious_ownership(const char *gitfile, const char *worktree,
</pre></body></html>