Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitede325d

Browse files
committed
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 causedthe issue described ingitpython-developers#224.Fixesgitpython-developers#224
1 parent43e430d commitede325d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

‎git/index/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,6 @@ def _to_relative_path(self, path):
535535
if it is not within our git direcotory"""
536536
ifnotos.path.isabs(path):
537537
returnpath
538-
path=os.path.realpath(path)
539538
relative_path=path.replace(self.repo.working_tree_dir+os.sep,"")
540539
ifrelative_path==path:
541540
raiseValueError("Absolute path %r is not in git repository at %r"% (path,self.repo.working_tree_dir))

‎git/repo/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,14 @@ def __init__(self, path=None, odbt=DefaultDBType, search_parent_directories=Fals
128128
# walk up the path to find the .git dir
129129
whilecurpath:
130130
ifis_git_dir(curpath):
131-
self.git_dir=os.path.realpath(curpath)
131+
self.git_dir=curpath
132132
self._working_tree_dir=os.path.dirname(self.git_dir)
133133
break
134134

135135
gitpath=find_git_dir(join(curpath,'.git'))
136136
ifgitpathisnotNone:
137-
self.git_dir=os.path.realpath(gitpath)
138-
self._working_tree_dir=os.path.realpath(curpath)
137+
self.git_dir=gitpath
138+
self._working_tree_dir=curpath
139139
break
140140

141141
ifnotsearch_parent_directories:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp