Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make test failed about tig@2.5.6 on ubuntu_aarch64 #1224

Closed
Tom-python0121 opened this issue Jul 25, 2022 · 1 comment
Closed

make test failed about tig@2.5.6 on ubuntu_aarch64 #1224

Tom-python0121 opened this issue Jul 25, 2022 · 1 comment

Comments

@Tom-python0121
Copy link

Tom-python0121 commented Jul 25, 2022

hello,I meet a problem:make test failed about tig@2.5.6 on ubuntu_aarch64

Steps to reproduce the issue

root@ubuntu:~/tig-2.5.6# make test
...
      TEST  test/main/all-arg-test
      TEST  test/main/author-name-change-test
fatal: unsafe repository ('/root/tig-2.5.6/test/tmp/main/author-name-change-test/work-dir' is owned by someone else)
To add an exception for this directory, call:

        git config --global --add safe.directory /root/tig-2.5.6/test/tmp/main/author-name-change-test/work-dir
            | No test results found
Makefile:278: recipe for target 'test/main/author-name-change-test' failed
make: *** [test/main/author-name-change-test] Error 128

Can you tell me why this problem arises?

@koutcher
Copy link
Collaborator

This is due to CVE-2022-24765 mitigation in Git v2.35.2. When you run the test suite as root, the repo is untarred with the original UID and git's safeguard is blocking the test. Easily fixed.

@koutcher koutcher reopened this Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants