diff options
author | Piotr Gaczkowski <DoomHammerNG@gmail.com> | 2016-08-17 22:13:25 +0200 |
---|---|---|
committer | Piotr Gaczkowski <DoomHammerNG@gmail.com> | 2016-08-17 22:19:39 +0200 |
commit | 26bb778b34b93537cfbfd5c556d3810f2cf3f76e (patch) | |
tree | f237c738c0af4ed1ca52903b8c176d511baed483 /git/repo/base.py | |
parent | 58934b8f939d93f170858a829c0a79657b3885e0 (diff) | |
download | gitpython-26bb778b34b93537cfbfd5c556d3810f2cf3f76e.tar.gz |
use $GIT_DIR when set
Diffstat (limited to 'git/repo/base.py')
-rw-r--r-- | git/repo/base.py | 2 |
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: |