diff options
Diffstat (limited to 'stagit-index.c')
-rw-r--r-- | stagit-index.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stagit-index.c b/stagit-index.c index 087ae1e..7c1f76d 100644 --- a/stagit-index.c +++ b/stagit-index.c @@ -173,7 +173,11 @@ main(int argc, char *argv[]) return 1; } + /* do not search outside the git repository: + GIT_CONFIG_LEVEL_APP is the highest level currently */ git_libgit2_init(); + for (i = 1; i <= GIT_CONFIG_LEVEL_APP; i++) + git_libgit2_opts(GIT_OPT_SET_SEARCH_PATH, i, ""); #ifdef __OpenBSD__ if (pledge("stdio rpath", NULL) == -1) |