From: Hiltjo Posthuma Date: Wed, 9 Dec 2015 21:55:59 +0000 (+0100) Subject: open repo: dont try to detect repos above the specified dir X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=0f5deec0a2c0513bd5ed8233d6424c0c413c138c;p=forks%2Fstagit.git open repo: dont try to detect repos above the specified dir --- diff --git a/urmoms.c b/urmoms.c index 91ab86f..ef715e4 100644 --- a/urmoms.c +++ b/urmoms.c @@ -557,7 +557,8 @@ main(int argc, char *argv[]) git_libgit2_init(); - if ((status = git_repository_open(&repo, repodir)) < 0) { + if ((status = git_repository_open_ext(&repo, repodir, + GIT_REPOSITORY_OPEN_NO_SEARCH, NULL)) < 0) { e = giterr_last(); fprintf(stderr, "error %d/%d: %s\n", status, e->klass, e->message); return status;