diff options
author | Hiltjo Posthuma <[email protected]> | 2022-05-27 21:29:14 +0200 |
---|---|---|
committer | Hiltjo Posthuma <[email protected]> | 2022-05-27 21:29:14 +0200 |
commit | 289045115432562f5fb4ddc721bd9008e8df4ad5 (patch) | |
tree | 155c32f14c41bdd78db4ac6912b300641ce3b71f | |
parent | 70541c5e2cbdc141ba94e76899aba5f07047cecf (diff) | |
download | stagit-289045115432562f5fb4ddc721bd9008e8df4ad5.tar.gz stagit-289045115432562f5fb4ddc721bd9008e8df4ad5.zip |
Revert "remain compatible with slightly older libgit versions for now"
This reverts commit 70541c5e2cbdc141ba94e76899aba5f07047cecf.
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.
-rw-r--r-- | stagit-index.c | 2 | ||||
-rw-r--r-- | stagit.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/stagit-index.c b/stagit-index.c index d2f22a5..735775b 100644 --- a/stagit-index.c +++ b/stagit-index.c @@ -188,10 +188,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) @@ -1235,10 +1235,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) |