-
-
Notifications
You must be signed in to change notification settings - Fork 216
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
fatal: unsafe repository ('...' is owned by someone else)
and impact of CVE-2022-24765 fix for git
#707
Comments
The workaround to this issue is to use |
I suspect many people are affected by this. It happens for example when running a Docker container where the source tree is mounted from the host. |
@henryiii @RonnyPfannschmidt What would be your take on this? |
@pitrou thanks for the linked issue, I believe it may be good/necessary to pass that config option to git I'll make it a Fokus roughly mid next week after completing git archive support |
The doc says that config option takes no effect when passed through command line. Modifying configs is IMHO inacceptable. IMHO the solution with |
@KOLANICH Can you point to the doc that says that? |
Saw the same issue. An unsafe fix is Setting In general, I agree that this is likely to come up more frequently for container use-cases once the newer git CLI is more prevalent. |
Looking at the implementation in I'll try to make a pull request this afternoon. |
resolved in the latest release |
Hi. Today I have noticed that editable installation of packages from root stopped working. It is because of git version with fix for
CVE-2022-24765
has been released and delivered.It writes that
LookupError: setuptools-scm was unable to detect version for ...
.Investigation and adding dumping resulted in pinpointing the error to
.git.from_potential_worktree
, wheregit
errors with.
pip
must not execute wheel building elevated even if called from root, it should drop its rights for the time it builds wheel, and it is a flaw inpip
it doesn't do that.But those are not flaws in
setuptools_scm
. Let's concentrate on the flaws onsetuptools_scm
related to the issue.git
are failed,setuptools_scm
suppresses their output making it hard to debug what's happening #706The text was updated successfully, but these errors were encountered: