diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-12 12:25:53 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-12 12:25:53 +0100 |
commit | e7671110bc865786ffe61cf9b92bf43c03759229 (patch) | |
tree | 3318b3b49d2a6c5f58a31ce189c27d1cf4d56927 /git/test/test_index.py | |
parent | ede325d15ba9cba0e7fe9ee693085fd5db966629 (diff) | |
download | gitpython-e7671110bc865786ffe61cf9b92bf43c03759229.tar.gz |
Removed os.path.realpath invocations as they are not necessary if paths are used consistently.
This will save IOPs, and make the code easier to understand (I suppose).
Related to #224
Diffstat (limited to 'git/test/test_index.py')
-rw-r--r-- | git/test/test_index.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/test/test_index.py b/git/test/test_index.py index 4fdd3d1b..021a8cd9 100644 --- a/git/test/test_index.py +++ b/git/test/test_index.py @@ -501,7 +501,7 @@ class TestIndex(TestBase): # same file entries = index.reset(new_commit).add( - [os.path.abspath(os.path.join('lib', 'git', 'head.py'))] * 2, fprogress=self._fprogress_add) + [os.path.join(rw_repo.working_tree_dir, 'lib', 'git', 'head.py')] * 2, fprogress=self._fprogress_add) self._assert_entries(entries) assert entries[0].mode & 0o644 == 0o644 # would fail, test is too primitive to handle this case |