Bug #5204
closed
install.sh: "unsafe repository" error
Added by Saurab Dulal almost 3 years ago.
Updated about 2 years ago.
Description
Can't install Mini-NDN due to the following issue.
.../ndn-src/mini-ndn/dl/mininet-wifi ../ndn-src/mini-ndn/dl/mininet-wifi
fatal: unsafe repository ('../ndn-src/mini-ndn/dl/mininet-wifi' is owned by someone else)
To add an exception for this directory, call:
git config --global --add safe.directory ../ndn-src/mini-ndn/dl/mininet-wifi
running git config --global --add safe.directory ../ndn-src/mini-ndn/dl/mininet-wifi
this command doesn't solves the problem.
Saurab Dulal wrote:
Can't install Mini-NDN due to the following issue.
.../ndn-src/mini-ndn/dl/mininet-wifi ../ndn-src/mini-ndn/dl/mininet-wifi
fatal: unsafe repository ('../ndn-src/mini-ndn/dl/mininet-wifi' is owned by someone else)
To add an exception for this directory, call:
git config --global --add safe.directory ../ndn-src/mini-ndn/dl/mininet-wifi
running git config --global --add safe.directory ../ndn-src/mini-ndn/dl/mininet-wifi
this command doesn't solves the problem.
A quick fix,
sudo git config --global --add safe.directory '*' -- if you trust every folder.
else
sudo git config --global --add safe.directory /folder/name
- Related to Bug #5205: sudo ./waf install: unsafe repository added
What git command triggers the error? I suppose it's being run as the root user? Why?
- Tracker changed from Task to Bug
- Subject changed from Issues with Mini-NDN installation to install.sh: "unsafe repository" error
- Status changed from New to In Progress
- Assignee set to Junxiao Shi
- % Done changed from 0 to 50
- Status changed from In Progress to Closed
- % Done changed from 50 to 100
Also available in: Atom
PDF