Hello,
There is a new page in the wiki which contains my version of the configuration file for git:
http://sip-router.org/wiki/git/gitconfig
Some of the options were not so easy to figure out, so I decided to share the config file to make your git learning curve less steep than mine was (and is :-). The file is well commented.
Save the configuration file in ~/.gitconfig and set your name and email address to your real name and real email address. After that you get your copy of the sip-router repository using:
mkdir my_repo cd my_repo git init git fetch sr
You have pulled the whole history when the last command finished. "sr" is a shorthand for the sip-router git repository.
As the next step you can check out the master branch, this is where the most recent source code is (it is an equivalent of the trunk in svn or HEAD in cvs):
git co -b master sr/master
"co" is an alias for checkout, this alias is defined in the configuration file.
So now you have your very own copy of the sip-router repository, but that's not all, you can also pull the whole kamailio repository into it:
g fetch km
"km" is a shorthand for the git mirror of the kamailio svn repository. This command will produce a lot of output (don't be scared) and after it finishes you will have the full history of both projects--sip-router and kamailio--in your local git repository. You can, for example, check out kamailio svn trunk using:
git co -b kam_trunk km/trunk
And now you have the sources from kamailio trunk in your working directory.
You can, of course do the same for SER from CVS, to get the latest sources of ser:
git fetch cvs
"cvs" is a shorthand for the git import of the ser cvs repository. Now you can switch to cvs trunk using:
git co -b cvs_trunk cvs/cvs-head
And now you have the latest ser sources in your working directory.
And the last repository you can fetch from is the opensips git import:
git fetch os git co -b opensips_trunk os/trunk
And you have the latest sources from opensips trunk.
To display all branches from all repositories run:
git branch -a
The most important branches are:
sr/master - Latest version of sip-router core cvs/cvs-head - Latest version of ser from cvs km/trunk - Kamailio svn trunk km/1.4 - Kamailio branch with release 1.4 os/trunk - Opensips svn trunk
Jan.
On Thursday 19 February 2009, Jan Janak wrote:
mkdir my_repo cd my_repo git init git fetch sr git co -b master sr/master git fetch km
Hi Jan,
I've tried to setup a repository with sr and kamailio. It stop at the last command with this:
error: Unable to find f74184e074ae56442925cfc4e83f8e885ea8b6f3 under http://git.sip-router.org/kamailio Cannot obtain needed tree f74184e074ae56442925cfc4e83f8e885ea8b6f3 while processing commit 55e8c4e59f34c4f4cbb1cda0cab55971a70be107.
I've started it again, and then it seems to work. It reproducable, a second trial produced the same result (only some timestamp differed).
[..] walk cddc6bd400362a89a907b93dc4e532595acff26f From http://git.sip-router.org/kamailio * [new branch] 0.9 -> km/0.9 * [new branch] 1.0 -> km/1.0 * [new branch] 1.1 -> km/1.1 * [new branch] 1.2 -> km/1.2 * [new branch] 1.3 -> km/1.3 * [new branch] 1.4 -> km/1.4
Do you've also observed this problem?
Cheers,
Henning
On 27-02 16:50, Henning Westerholt wrote:
On Thursday 19 February 2009, Jan Janak wrote:
mkdir my_repo cd my_repo git init git fetch sr git co -b master sr/master git fetch km
Hi Jan,
I've tried to setup a repository with sr and kamailio. It stop at the last command with this:
error: Unable to find f74184e074ae56442925cfc4e83f8e885ea8b6f3 under http://git.sip-router.org/kamailio Cannot obtain needed tree f74184e074ae56442925cfc4e83f8e885ea8b6f3 while processing commit 55e8c4e59f34c4f4cbb1cda0cab55971a70be107.
I've started it again, and then it seems to work. It reproducable, a second trial produced the same result (only some timestamp differed).
[..] walk cddc6bd400362a89a907b93dc4e532595acff26f From http://git.sip-router.org/kamailio
- [new branch] 0.9 -> km/0.9
- [new branch] 1.0 -> km/1.0
- [new branch] 1.1 -> km/1.1
- [new branch] 1.2 -> km/1.2
- [new branch] 1.3 -> km/1.3
- [new branch] 1.4 -> km/1.4
Do you've also observed this problem?
I haven't seen this, I just tried to download the whole repository to be sure and I can get everything in one step. What version of git are you using? (run git --version). I have 1.5.6.5 and that's also the version of git running on the server.
If you have an older version then try to upgrade it. If you can't upgrade it easily then you can try to login to git.sip-router.org and repeat your steps there.
Jan.
On Friday 27 February 2009, Jan Janak wrote:
Do you've also observed this problem?
I haven't seen this, I just tried to download the whole repository to be sure and I can get everything in one step. What version of git are you using? (run git --version). I have 1.5.6.5 and that's also the version of git running on the server.
Hi Jan,
i've updated to 1.5.6 (finally, from backports.org), and now its runs flawless.
Thanks,
Henning