Project

General

Profile

Actions

Bug #5204

closed

install.sh: "unsafe repository" error

Added by Saurab Dulal about 2 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
High
Assignee:
Category:
-
Target version:
-
Start date:
05/09/2022
Due date:
% Done:

100%

Estimated time:

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.


Related issues 1 (0 open1 closed)

Related to ndn-cxx - Bug #5205: sudo ./waf install: unsafe repositoryRejected

Actions
Actions #1

Updated by Saurab Dulal about 2 years ago

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

Actions #2

Updated by Junxiao Shi about 2 years ago

  • Related to Bug #5205: sudo ./waf install: unsafe repository added
Actions #3

Updated by Davide Pesavento about 2 years ago

What git command triggers the error? I suppose it's being run as the root user? Why?

Actions #4

Updated by Junxiao Shi almost 2 years ago

  • 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
Actions #5

Updated by Junxiao Shi about 1 year ago

  • Status changed from In Progress to Closed
  • % Done changed from 50 to 100
Actions

Also available in: Atom PDF