From e7671110bc865786ffe61cf9b92bf43c03759229 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 12 Jan 2015 12:25:53 +0100 Subject: 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 --- git/test/test_index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/test/test_index.py') 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 -- cgit v1.2.1