Closed net1957 closed 1 week ago
This is intentional, as the repository on the USB key could be crafted such that it executes code as part of the push, code that is defined on that drive.
If you are 100% certain that it is safe to push to that key, you need to indicate it e.g. via git -c safe.directory=\* push /m/dvlt/Db_presenter <branch>
.
Thanks for the reply, but this don't change anything.
If I use your example git -c safe.directory=\* push sk-cle
or if I execute git config --global --add safe.directory 'M:\dvlt\Db_presenter.git'
followed with git push sk-cle
the command always fail with the same message
If I use your example
git -c safe.directory=\* push sk-cle
Right, I forgot that the config values provided via -c
do not extend to the git-receive-pack
sub-process that is spawned from git push
.
if I execute
git config --global --add safe.directory 'M:\dvlt\Db_presenter.git'
In my tests, this failed as long as backslashes were used. As soon as forward slashes were used, it worked as expected. As far as I remember, the error message specifically replaces backslashes with forward slashes, but I might be wrong.
Setup
One of the following:
insert your machine's response here
I push to a USB key formatted as exFAT. It worked with version 2.44.0. if I apply the given advice to add an exception for this directory, the problem is the same
Details
bash or UI
git push sk-cle
a successful push
The following message is displayed:
insert URL here