Skip to contentSkip to conversation

'/pub/git/u-boot.git': not in whitelist. Please help!

DISCUSSION Gary Yang 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore

Gary Yang

author
#0 lore raw

At git public repository server, I started git-daemon

sudo git-daemon git-daemon -verbose --inetd --export-all --base-path=/pub/git &

grep 9418 /etc/services
git 9418/tcp # Git Version Control System

At my private machine:
git pull git://svdcgit01.amcc.com/pub/git/u-boot.git
fatal: The remote end hung up unexpectedly

At the git public repository server, I got:
'/pub/git/u-boot.git': not in whitelist

ls /pub/git/u-boot.git
branches/ config description HEAD hooks/ info/ objects/ refs/

What I did wrong? Please help.

#1 lore raw
Quoted 3 lines · Gary Yang

At git public repository server, I started git-daemon

sudo git-daemon git-daemon -verbose --inetd --export-all --base-path=/pub/git &

Did you mean

  $ sudo git daemon --verbose --inetd --export-all --base-path=/pub/git &

(Notice the duplicated 'git-daemon' in your command.)

Quoted 9 lines

grep 9418 /etc/services
git 9418/tcp # Git Version Control System

At my private machine:
git pull git://svdcgit01.amcc.com/pub/git/u-boot.git
fatal: The remote end hung up unexpectedly

At the git public repository server, I got:
'/pub/git/u-boot.git': not in whitelist

They way in which you invoked git-daemon said that the following directories are white-listed:

git-daemon
-verbose
--inetd
--export-all
--base-path=/pub/git

Nowhere in this list is /pub/git/u-boot.git.

;)

-- Hannes