diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2016-08-18 01:00:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-18 01:00:02 +0200 |
commit | 657cd7e47571710246375433795ab60520e20434 (patch) | |
tree | f237c738c0af4ed1ca52903b8c176d511baed483 /git | |
parent | 58934b8f939d93f170858a829c0a79657b3885e0 (diff) | |
parent | 26bb778b34b93537cfbfd5c556d3810f2cf3f76e (diff) | |
download | gitpython-657cd7e47571710246375433795ab60520e20434.tar.gz |
Merge pull request #498 from DoomHammer/try-git-dir
Use $GIT_DIR when set
Diffstat (limited to 'git')
-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: |