diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2014-11-19 11:20:01 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2014-11-19 11:20:01 +0100 |
commit | 706d3a28b6fa2d7ff90bbc564a53f4007321534f (patch) | |
tree | 62cc11be743350b13f85cc8945233ece21c60610 /git/repo/base.py | |
parent | 22c4671b58a6289667f7ec132bc5251672411150 (diff) | |
download | gitpython-706d3a28b6fa2d7ff90bbc564a53f4007321534f.tar.gz |
Minor fix to make read_gitfile work .
Diffstat (limited to 'git/repo/base.py')
-rw-r--r-- | git/repo/base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git/repo/base.py b/git/repo/base.py index a111d643..5273d4b2 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -35,8 +35,8 @@ from fun import ( rev_parse, is_git_dir, find_git_dir, - touch - read_gitfile, + read_gitfile, + touch, ) import os @@ -117,7 +117,7 @@ class Repo(object): self.git_dir = gitpath self._working_tree_dir = curpath break - gitpath = read_gitfile(gitpath) + gitpath = read_gitfile(curpath) if gitpath: self.git_dir = gitpath self._working_tree_dir = curpath |