You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In recent versions of git, the command fails if the .git directory is not owned by the user executing the git command. This is the result of a security patch CVE-2022-24765.
Others have seen this problem, too, for example setuptools-scm. Their fix is to specify --git-dir explicitly. This would be straightforward in miniver, but the module _version.py does not know where the .git directory lives (it is commonly located in the parent directory of the python root package, but this is not guaranteed). So I don't have an immediate suggestion for a foolproof fix.
The text was updated successfully, but these errors were encountered:
klkl0808
changed the title
git fails if owned by other user
git fails if not owned by user
Jan 18, 2023
In recent versions of git, the command fails if the
.git
directory is not owned by the user executing the git command. This is the result of a security patch CVE-2022-24765.Others have seen this problem, too, for example setuptools-scm. Their fix is to specify
--git-dir
explicitly. This would be straightforward in miniver, but the module_version.py
does not know where the.git
directory lives (it is commonly located in the parent directory of the python root package, but this is not guaranteed). So I don't have an immediate suggestion for a foolproof fix.The text was updated successfully, but these errors were encountered: