Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Closed
Description
======================================================================ERROR: test_index_mutation (git.test.test_index.TestIndex)----------------------------------------------------------------------Traceback (most recent call last): File "/home/yoh/deb/gits/python-git/git/test/lib/helper.py", line 112, in repo_creator return func(self, rw_repo) File "/home/yoh/deb/gits/python-git/git/test/test_index.py", line 482, in test_index_mutation [os.path.abspath(os.path.join('lib', 'git', 'head.py'))] * 2, fprogress=self._fprogress_add) File "/home/yoh/deb/gits/python-git/git/index/base.py", line 684, in add paths, entries = self._preprocess_add_items(items) File "/home/yoh/deb/gits/python-git/git/index/base.py", line 546, in _preprocess_add_items paths.append(self._to_relative_path(item)) File "/home/yoh/deb/gits/python-git/git/index/base.py", line 536, in _to_relative_path raise ValueError("Absolute path %r is not in git repository at %r" % (path, self.repo.working_tree_dir))ValueError: Absolute path '/tmp/tmpX75gjinon_bare_test_index_mutation/lib/git/head.py' is not in git repository at '/home/yoh/.tmp/tmpX75gjinon_bare_test_index_mutation'
since I have
$> ls -ld $TMPDIRlrwxrwxrwx 1 yoh yoh 5 Nov 10 2010 /home/yoh/.tmp -> /tmp//
so may be in_to_relative_path should deref both paths before comparison?