summaryrefslogtreecommitdiffhomepage
path: root/patches/git
diff options
context:
space:
mode:
authorØrjan Malde <red@foxi.me>2022-09-25 16:08:16 +0200
committerØrjan Malde <red@foxi.me>2022-09-25 16:08:16 +0200
commit81e2e26bd48b8c78e11514dc32617e4b2b952a43 (patch)
tree713b79b9479a4e44259fa5794000a009bc86e247 /patches/git
parent14c7b892670419cc724ca10db588f77234acab43 (diff)
downloadmidipix_build-81e2e26bd48b8c78e11514dc32617e4b2b952a43.tar.bz2
midipix_build-81e2e26bd48b8c78e11514dc32617e4b2b952a43.tar.xz
patches/git/git-no-owner-check.patch: new patch.
Signed-off-by: Ørjan Malde <red@foxi.me>
Diffstat (limited to 'patches/git')
-rw-r--r--patches/git/git-no-owner-check.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/patches/git/git-no-owner-check.patch b/patches/git/git-no-owner-check.patch
new file mode 100644
index 00000000..8eaffbb5
--- /dev/null
+++ b/patches/git/git-no-owner-check.patch
@@ -0,0 +1,22 @@
+diff -ru git-2.35.2.orig/setup.c git-2.35.2/setup.c
+--- git-2.35.2.orig/setup.c 2022-09-25 15:35:21.270533842 +0200
++++ git-2.35.2/setup.c 2022-09-25 15:33:14.246537819 +0200
+@@ -1116,6 +1116,10 @@
+
+ static int ensure_valid_ownership(const char *path)
+ {
++#ifdef __midipix__
++ (void)path;
++ return 1;
++#else
+ struct safe_directory_data data = { .path = path };
+
+ if (is_path_owned_by_current_user(path))
+@@ -1124,6 +1128,7 @@
+ read_very_early_config(safe_directory_cb, &data);
+
+ return data.is_safe;
++#endif
+ }
+
+ enum discovery_result {