Fatal: ambiguous argument '@'


(Jerry) #1

dear all,
I get some error info, can not start my discourse, when my first exce ./launch rebuild app .

:sob:

CentOS

Need you help.

正在获取 origin
fatal: ambiguous argument ‘@’: unknown revision or path not in the working tree.
Use ‘–’ to separate paths from revisions, like this:
'git […] – […]'
fatal: Not a valid object name @
./launcher: 第 644 行:[: @: 期待一元表达式
./launcher: 第 654 行:[: aab5d67efdbeb3d79962276ba76e483f90d9679a: 期待一元表达式
Launcher has diverged source, this is only expected in Dev mode
cd /pups && git pull && /pups/bin/pups --stdin


(Jerry) #4
# cd /usr/src
# wget https://www.kernel.org/pub/software/scm/git/git-2.10.2.tar.gz
# tar xzf git-2.10.2.tar.gz

(Jerry) #5
> # cd git-2.10.2
> # make prefix=/usr/local/git all
> # make prefix=/usr/local/git install
> # echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc
> # source /etc/bashrc

(Jerry) #6

after update git’s version(1.8.3 to 2.10.2), the problem solved.


(Jerry) #7
➜  discourse ./launcher rebuild app
which: no docker.io in (/oneapm/tool:/oneapm/service:/oneapm/local/jdk1.8/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
which: no git in (/oneapm/tool:/oneapm/service:/oneapm/local/jdk1.8/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
./launcher:行176: --version: 未找到命令
ERROR: Git version  not supported, **please upgrade to at least 1.8.0, or recommended 1.8.0**
➜  discourse git
zsh: command not found: git