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

test_index_mutation compares full dereferenced and non-dereferenced paths #224

Closed
Assignees
Byron
@yarikoptic

Description

@yarikoptic
======================================================================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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp