Blame patches/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)
431e76
 {
431e76
+#ifdef __midipix__
431e76
+	(void)gitfile;
431e76
+	(void)worktree;
431e76
+	(void)gitdir;
431e76
+
431e76
+	return 1;
431e76
+#else
431e76
 	struct safe_directory_data data = {
431e76
 		.path = worktree ? worktree : gitdir
431e76
 	};
431e76
@@ -1148,6 +1155,7 @@
431e76
 	read_very_early_config(safe_directory_cb, &data);
431e76
 
431e76
 	return data.is_safe;
431e76
+#endif
431e76
 }
431e76
 
431e76
 enum discovery_result {