diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2017-02-25 11:32:28 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2017-02-25 11:32:28 +0100 |
commit | d3bd3c6b94c735c725f39959730de11c1cebe67a (patch) | |
tree | aa4b1a154176b23b3cd69da3bb8148a1427b79c7 /git/repo/base.py | |
parent | 416daa0d11d6146e00131cf668998656186aef6a (diff) | |
parent | 8dfa1685aac22a83ba1f60d1b2d52abf5a3d842f (diff) | |
download | gitpython-d3bd3c6b94c735c725f39959730de11c1cebe67a.tar.gz |
Merge branch 'git_work_tree' of https://github.com/tbhartman/GitPython into tbhartman-git_work_tree
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 ace5223f..b889da71 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -135,7 +135,7 @@ class Repo(object): # removed. It's just cleaner. if is_git_dir(curpath): self.git_dir = curpath - self._working_tree_dir = os.path.dirname(self.git_dir) + self._working_tree_dir = os.getenv('GIT_WORK_TREE', os.path.dirname(self.git_dir)) break sm_gitpath = find_submodule_git_dir(osp.join(curpath, '.git')) |