diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-12-09 22:55:59 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-12-09 22:55:59 +0100 |
commit | 0f5deec0a2c0513bd5ed8233d6424c0c413c138c (patch) | |
tree | 9ec8f46747a49259d0fb16fefda6f0e8d6b59b8a /urmoms.c | |
parent | e489408b99fdf3d1aa4a80b860cecdf09c67306a (diff) |
open repo: dont try to detect repos above the specified dir
Diffstat (limited to 'urmoms.c')
-rw-r--r-- | urmoms.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |