summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2018-12-11 09:44:50 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2018-12-11 09:44:50 +0100
commitc09063dc005826cd978d3faf91c0a42701a9dca5 (patch)
treed52ac5ed8292e8062bc6af995184c61221391e66
parent19efeef16031676f6fc99cc61e833f77c70fff43 (diff)
Allow the git repository to be in a parent directory.
-rw-r--r--lesana/collection.py2
1 files changed, 1 insertions, 1 deletions
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(