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