| diff -ru git-2.35.5.orig/setup.c git-2.35.5/setup.c |
| |
| |
| @@ -1130,6 +1130,13 @@ |
| static int ensure_valid_ownership(const char *gitfile, |
| const char *worktree, const char *gitdir) |
| { |
| +#if 1 |
| + (void)gitfile; |
| + (void)worktree; |
| + (void)gitdir; |
| + |
| + return 1; |
| +#else |
| struct safe_directory_data data = { |
| .path = worktree ? worktree : gitdir |
| }; |
| @@ -1148,6 +1155,7 @@ |
| read_very_early_config(safe_directory_cb, &data); |
| |
| return data.is_safe; |
| +#endif |
| } |
| |
| enum discovery_result { |