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
Probably everybody else has already dealt with this, but I work in an environment which lags behind the latest releases of things like Git by quite a ways.
Building git-hist 1.0.5 with cargo and Rust 1.71 is successful, but I receive this error message upon actually running git hist FILENAME:
$ git-hist FILENAMEError: Faild to open a git repository for the current directoryCaused by: config value 'safe.directory' was not found; class=Config (7); code=NotFound (-3)
I believe this relates to a recently-discovered security vulnerability in Git, and a resulting workaround in git2-rs. I'll update the issue description with references as I do more research.
As a temporary workaround, you can define GIT_CEILING_DIRECTORIES as described here.Edit: git2-rs really wants what it says it wants, which is to see safe.directory for the current directory in ~/.gitconfig. Here's how to add that:
Probably everybody else has already dealt with this, but I work in an environment which lags behind the latest releases of things like Git by quite a ways.
Building git-hist 1.0.5 with cargo and Rust 1.71 is successful, but I receive this error message upon actually running
git hist FILENAME
:I believe this relates to a recently-discovered security vulnerability in Git, and a resulting workaround in git2-rs. I'll update the issue description with references as I do more research.
As a temporary workaround, you can defineEdit: git2-rs really wants what it says it wants, which is to seeGIT_CEILING_DIRECTORIES
as described here.safe.directory
for the current directory in~/.gitconfig
. Here's how to add that:$ git config --add --global safe.directory $PWD
Possibly related
The text was updated successfully, but these errors were encountered: