我已经在Ubuntu 14.04上安装了最新版本的GitLab,除了推送到远程外,它工作正常。gitlab-shell:不允许的命令
运行ssh [email protected] "git-receive-pack repo.git"
效果很好。在〜/ gitlab壳/ gitlab-shell.log,结果是
INFO -- : gitlab-shell: executing git command git-receive-pack repo.git for user with key key-1.
但是当我跑步时git push
,日志说:
WARN -- : gitlab-shell: Attempt to execute disallowed command git receive-pack 'repo.git' by user with key key-1.
,输出是:
fatal: protocol error: bad line length character: Disa
的ssh [email protected] "git receive-pack repo.git"
输出是
"Disallowed command"
所以允许和不允许的区别是缺少的短划线。
我的Git版本:
- 本地Git版本:2.2.1(OS X)
- 远程Git版本:1.9.1(Ubuntu的14.04)
我怎样才能解决这个问题?有配置参数吗?
我想这只能是与gitlab壳问题,否则'SSH [email protected]“混帐收到包repo.git”'是行不通的。 和gitlab检查都是绿色的... – raphaelj