fatal: unsafe repository ('/usr/local/share/webis-cmd' is owned by someone else)
I have the webis
command installed globally. And I'm using it in WSL2 (which should not matter, I hope)
The message started to appear starting today, when opening a new shell or when calling webis
. I might have updated some packages yesterday but not sure which ones.
fatal: unsafe repository ('/usr/local/share/webis-cmd' is owned by someone else)
To add an exception for this directory, call:
git config --global --add safe.directory /usr/local/share/webis-cmd
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
$ ll /usr/local/share/webis-cmd
total 68
drwxr-xr-x 6 root root 4096 Oct 4 2021 ./
drwxr-xr-x 8 root root 4096 Feb 16 2021 ../
drwxr-xr-x 8 root root 4096 Apr 11 16:34 .git/
-rw-r--r-- 1 root root 107 Feb 16 2021 .gitignore
-rw-r--r-- 1 root root 13971 Feb 16 2021 README.md
-rw-r--r-- 1 root root 11140 Jul 9 2021 cheatsheet.txt
drwxr-xr-x 3 root root 4096 Jan 25 19:38 libs/
-rw-r--r-- 1 root root 86 Jul 21 2021 requirements.txt
-rw-r--r-- 1 root root 651 Jul 21 2021 setup.py
drwxr-xr-x 17 root root 4096 Oct 4 2021 tools/
drwxr-xr-x 2 root root 4096 Feb 16 2021 web-views/
-rwxr-xr-x 1 root root 3537 Oct 4 2021 webis.py*
$ ll /usr/local/bin/webis
lrwxrwxrwx 1 root root 35 Feb 16 2021 /usr/local/bin/webis -> /usr/local/share/webis-cmd/webis.py*
Note, might be something to add to the installation/upgrade to suppress automatically? Just calling the suggested command will quieten this warning.
Edited by Erik Körner