summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git/repo/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/repo/base.py b/git/repo/base.py
index 57f87df6..312c01ef 100644
--- a/git/repo/base.py
+++ b/git/repo/base.py
@@ -141,7 +141,7 @@ class Repo(object):
self.working_dir = None
self._working_tree_dir = None
self.git_dir = None
- curpath = epath
+ curpath = os.getenv('GIT_DIR', epath)
# walk up the path to find the .git dir
while curpath: