summaryrefslogtreecommitdiff
path: root/git/repo/base.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-12 11:16:52 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-12 11:16:52 +0100
commitede325d15ba9cba0e7fe9ee693085fd5db966629 (patch)
treeb69b9cf2d2a52837aeb3f36163194f2ba00225ad /git/repo/base.py
parent43e430d7fa5298f6db6b1649c1a77c208bacf2fc (diff)
downloadgitpython-ede325d15ba9cba0e7fe9ee693085fd5db966629.tar.gz
Removed all previously added invocations of os.path.realpath as it wasn't required afterall.
Turns out that the now removed `read_gitfile` functions applied os.path.realpath which caused the issue described in #224. Fixes #224
Diffstat (limited to 'git/repo/base.py')
-rw-r--r--git/repo/base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/git/repo/base.py b/git/repo/base.py
index d20d699a..d6efbd58 100644
--- a/git/repo/base.py
+++ b/git/repo/base.py
@@ -128,14 +128,14 @@ class Repo(object):
# walk up the path to find the .git dir
while curpath:
if is_git_dir(curpath):
- self.git_dir = os.path.realpath(curpath)
+ self.git_dir = curpath
self._working_tree_dir = os.path.dirname(self.git_dir)
break
gitpath = find_git_dir(join(curpath, '.git'))
if gitpath is not None:
- self.git_dir = os.path.realpath(gitpath)
- self._working_tree_dir = os.path.realpath(curpath)
+ self.git_dir = gitpath
+ self._working_tree_dir = curpath
break
if not search_parent_directories: