Blame patches/git/git-no-owner-check.patch

431e76
diff -ru git-2.35.5.orig/setup.c git-2.35.5/setup.c
431e76
--- git-2.35.5.orig/setup.c	2022-10-06 23:44:02.000000000 +0200
431e76
+++ git-2.35.5/setup.c	2022-10-19 13:48:26.183628821 +0200
431e76
@@ -1130,6 +1130,13 @@
431e76
 static int ensure_valid_ownership(const char *gitfile,
431e76
 				const char *worktree, const char *gitdir)
81e2e2
 {
6e73e8
+#if 1
431e76
+	(void)gitfile;
431e76
+	(void)worktree;
431e76
+	(void)gitdir;
431e76
+
81e2e2
+	return 1;
81e2e2
+#else
431e76
 	struct safe_directory_data data = {
431e76
 		.path = worktree ? worktree : gitdir
431e76
 	};
431e76
@@ -1148,6 +1155,7 @@
81e2e2
 	read_very_early_config(safe_directory_cb, &data);
81e2e2
 
81e2e2
 	return data.is_safe;
81e2e2
+#endif
81e2e2
 }
81e2e2
 
81e2e2
 enum discovery_result {