• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
yuzaipiaofei
博客园    首页    新随笔    联系   管理    订阅  订阅

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



posted @ 2012-07-15 17:25  yuzaipiaofei  阅读(252)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3