Hi all, I am trying to install the latest version using git (new to git) and after running "git checkout -b 4.0 origin/4.0" I got these messages:
[root@test kamailio-4.0.2]# git checkout -b 4.0 origin/4.0
fatal: Cannot update paths and switch to branch '4.0' at the same time. Did you intend to checkout 'origin/4.0' which can not be resolved as commit? [root@test kamailio-4.0.2]#
These were the commands I entered in order:
[root@test kamailio-4.0.2]# mkdir -p /usr/local/src/kamailio-4.0.2 [root@test kamailio-4.0.2]# cd /usr/local/src/kamailio-4.0.2/ [root@test kamailio-4.0.2]# git clone --depth 1 git://git.sip-router.org/sip-router kamailio [root@test kamailio-4.0.2]# cd kamailio [root@test kamailio-4.0.2]# git checkout -b 4.0 origin/4.0 --> this is were it fails
What does it mean, how should I proceed? I appreciate any advise, thank you
Hello,
recent versions of git changed behaviour for --depth 1, fetching only one branch. You have to give --no-single-branch as parameter, see:
http://www.kamailio.org/wiki/install/4.0.x/git#getting_sources_from_git
Cheers, Daniel
On 6/18/13 9:29 PM, John Doe wrote:
Hi all, I am trying to install the latest version using git (new to git) and after running "git checkout -b 4.0 origin/4.0" I got these messages:
[root@test kamailio-4.0.2]# git checkout -b 4.0 origin/4.0
fatal: Cannot update paths and switch to branch '4.0' at the same time. Did you intend to checkout 'origin/4.0' which can not be resolved as commit? [root@test kamailio-4.0.2]#
These were the commands I entered in order:
[root@test kamailio-4.0.2]# mkdir -p /usr/local/src/kamailio-4.0.2 [root@test kamailio-4.0.2]# cd /usr/local/src/kamailio-4.0.2/ [root@test kamailio-4.0.2]# git clone --depth 1 git://git.sip-router.org/sip-router kamailio [root@test kamailio-4.0.2]# cd kamailio [root@test kamailio-4.0.2]# git checkout -b 4.0 origin/4.0 --> this is were it fails
What does it mean, how should I proceed? I appreciate any advise, thank you _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi all, I am trying to install the latest version using git (new to git) and after running "git checkout -b 4.0 origin/4.0" I got these messages:
[root@test kamailio-4.0.2]# git checkout -b 4.0 origin/4.0
fatal: Cannot update paths and switch to branch '4.0' at the same time. Did you intend to checkout 'origin/4.0' which can not be resolved as commit? [root@test kamailio-4.0.2]#
These were the commands I entered in order:
[root@test kamailio-4.0.2]# mkdir -p /usr/local/src/kamailio-4.0.2 [root@test kamailio-4.0.2]# cd /usr/local/src/kamailio-4.0.2/ [root@test kamailio-4.0.2]# git clone --depth 1 git://git.sip-router.org/sip-router kamailio [root@test kamailio-4.0.2]# cd kamailio [root@test kamailio-4.0.2]# git checkout -b 4.0 origin/4.0 --> this is were it fails
What does it mean, how should I proceed? I appreciate any advise, thank you
Thank you Daniel, it worked. ----------------------------------------
From: jdoe_sip@hotmail.com To: sr-users@lists.sip-router.org Subject: Help with install using GIT Date: Wed, 19 Jun 2013 10:06:36 -0400
Hi all, I am trying to install the latest version using git (new to git) and after running "git checkout -b 4.0 origin/4.0" I got these messages:
[root@test kamailio-4.0.2]# git checkout -b 4.0 origin/4.0
fatal: Cannot update paths and switch to branch '4.0' at the same time. Did you intend to checkout 'origin/4.0' which can not be resolved as commit? [root@test kamailio-4.0.2]#
These were the commands I entered in order:
[root@test kamailio-4.0.2]# mkdir -p /usr/local/src/kamailio-4.0.2 [root@test kamailio-4.0.2]# cd /usr/local/src/kamailio-4.0.2/ [root@test kamailio-4.0.2]# git clone --depth 1 git://git.sip-router.org/sip-router kamailio [root@test kamailio-4.0.2]# cd kamailio [root@test kamailio-4.0.2]# git checkout -b 4.0 origin/4.0 --> this is were it fails
What does it mean, how should I proceed? I appreciate any advise, thank you