Skip to content

test_index_mutation compares full dereferenced and non-dereferenced paths #224

@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 $TMPDIR
lrwxrwxrwx 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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy