From c09063dc005826cd978d3faf91c0a42701a9dca5 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Tue, 11 Dec 2018 09:44:50 +0100 Subject: Allow the git repository to be in a parent directory. --- lesana/collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lesana/collection.py b/lesana/collection.py index 6c86436..5877a7d 100644 --- a/lesana/collection.py +++ b/lesana/collection.py @@ -275,7 +275,7 @@ class Collection(object): ) return False try: - repo = git.Repo(self.basedir) + repo = git.Repo(self.basedir, search_parent_directories=True) except git.exc.InvalidGitRepositoryError as e: logging.warning( "Could not find a git repository in {}".format( -- cgit v1.2.3