Home
Revert "remain compatible with slightly older libgit versions for now" - stagit-gopher - A git gopher frontend. (mirror) HTML git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 858e1f2a79484adaf430dbd63a836a652fc7527b DIR parent bfb7d7d5cb974479e13ee07f254512a2e909abc1 HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 27 May 2022 21:30:01 +0200 Revert "remain compatible with slightly older libgit versions for now" This reverts commit bfb7d7d5cb974479e13ee07f254512a2e909abc1. Reported by Anton: "The last commit[1] is not correct as GIT_OPT_SET_OWNER_VALIDATION is not a preprocessor directive but rather an enum. Causing the branch to never be entered." Diffstat: M stagit-gopher-index.c | 2 -- M stagit-gopher.c | 2 -- 2 files changed, 0 insertions(+), 4 deletions(-) --- DIR diff --git a/stagit-gopher-index.c b/stagit-gopher-index.c @@ -253,10 +253,8 @@ main(int argc, char *argv[]) git_libgit2_init(); for (i = 1; i <= GIT_CONFIG_LEVEL_APP; i++) git_libgit2_opts(GIT_OPT_SET_SEARCH_PATH, i, ""); -#ifdef GIT_OPT_SET_OWNER_VALIDATION /* do not require the git repository to be owned by the current user */ git_libgit2_opts(GIT_OPT_SET_OWNER_VALIDATION, 0); -#endif #ifdef __OpenBSD__ if (pledge("stdio rpath", NULL) == -1) DIR diff --git a/stagit-gopher.c b/stagit-gopher.c @@ -1296,10 +1296,8 @@ main(int argc, char *argv[]) git_libgit2_init(); for (i = 1; i <= GIT_CONFIG_LEVEL_APP; i++) git_libgit2_opts(GIT_OPT_SET_SEARCH_PATH, i, ""); -#ifdef GIT_OPT_SET_OWNER_VALIDATION /* do not require the git repository to be owned by the current user */ git_libgit2_opts(GIT_OPT_SET_OWNER_VALIDATION, 0); -#endif #ifdef __OpenBSD__ if (unveil(repodir, "r") == -1)