stagit

open repo: dont try to detect repos above the specified dir

Hiltjo Posthuma contact@arjunchoudhary.com

commit: f243db1 parent: 6f78a6f
1 files changed, 2 insertions(+), 1 deletions(-)
Murmoms.c+2-1
M · urmoms.c +2, -1
 1@@ -557,7 +557,8 @@ main(int argc, char *argv[])
 2 
 3 	git_libgit2_init();
 4 
 5-	if ((status = git_repository_open(&repo, repodir)) < 0) {
 6+	if ((status = git_repository_open_ext(&repo, repodir,
 7+		GIT_REPOSITORY_OPEN_NO_SEARCH, NULL)) < 0) {
 8 		e = giterr_last();
 9 		fprintf(stderr, "error %d/%d: %s\n", status, e->klass, e->message);
10 		return status;