gitolite push fail solutions

在提交代码中遇到无法提交的问题:

现象:

yuanwei@ubuntu:~/s400_d$ ls

default.xml
yuanwei@ubuntu:~/s400_d$ git push --all

fatal: remote error: access denied or repository not exported: /s400_d.git


 
yuanwei@ubuntu:~/s400_d$ ls
default.xml
yuanwei@ubuntu:~/s400_d$ git remote -v
origin git://192.168.2.132/s400_d.git (fetch)

origin git://192.168.2.132/s400_d.git (push)


解决:

添加一行参数  

 --enable=receive-pack

yuanwei@ubuntu:~/s400_d$ cat /etc/sv/git-daemon/run 
#!/bin/sh
exec 2>&1
echo 'git-daemon starting.'
exec chpst -ugitdaemon:gitolite \
  "$(git --exec-path)"/git-daemon --verbose --reuseaddr \
   --export-all --enable=receive-pack  --base-path=/home/gitolite/repositories  /home/gitolite/repositories



yuanwei@ubuntu:~/s400_d$ git push
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
Everything up-to-date



你可能感兴趣的:(ubuntu,git,Access,branch)