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

81e2e2
diff -ru git-2.35.2.orig/setup.c git-2.35.2/setup.c
81e2e2
--- git-2.35.2.orig/setup.c	2022-09-25 15:35:21.270533842 +0200
81e2e2
+++ git-2.35.2/setup.c	2022-09-25 15:33:14.246537819 +0200
81e2e2
@@ -1116,6 +1116,10 @@
81e2e2
 
81e2e2
 static int ensure_valid_ownership(const char *path)
81e2e2
 {
81e2e2
+#ifdef __midipix__
81e2e2
+	(void)path;
81e2e2
+	return 1;
81e2e2
+#else
81e2e2
 	struct safe_directory_data data = { .path = path };
81e2e2
 
81e2e2
 	if (is_path_owned_by_current_user(path))
81e2e2
@@ -1124,6 +1128,7 @@
81e2e2
 	read_very_early_config(safe_directory_cb, &data);
81e2e2
 
81e2e2
 	return data.is_safe;
81e2e2
+#endif
81e2e2
 }
81e2e2
 
81e2e2
 enum discovery_result {