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