project-navigation
Personal tools

Author Topic: Get the source with a particular tag  (Read 3767 times)

Offline LeSanglier

  • Rookie
  • ***
  • Posts: 35
    • View Profile
Get the source with a particular tag
« on: January 02, 2011, 03:36:28 pm »
Hello,

I woulk to know how to get the source code with the tag ufoai_2.3.1 (with the map source code) ?
I don't want to get the latest release (master branch)

Thx in advance.

Offline bayo

  • Professional loser
  • Project Coder
  • Captain
  • ***
  • Posts: 733
    • View Profile
Re: Get the source with a particular tag
« Reply #1 on: January 02, 2011, 05:38:51 pm »
Maybe it is more interesting to take the 2.3 branch. U can use git for it, or browse it with sourceforge http://ufoai.git.sourceforge.net/git/gitweb.cgi?p=ufoai/ufoai;a=summary (bottom of the page)

With Git
http://ufoai.ninex.info/wiki/index.php/Getting_the_source#Easy_Way
And instead of
Code: [Select]
git checkout -t origin/masterUse
Code: [Select]
git checkout -t origin/ufoai_2.3
« Last Edit: January 02, 2011, 05:41:14 pm by bayo »

Offline LeSanglier

  • Rookie
  • ***
  • Posts: 35
    • View Profile
Re: Get the source with a particular tag
« Reply #2 on: January 03, 2011, 12:27:56 pm »
Thx bayo,

With your tips, i have get the source code !

This is my method:

1) Clone the repository:

$ git clone <repository name>

2) Check if you are in master branch:

$ git branch

3) List all tag:

$ git tag -l

4) Get the stable version:

$ git checkout <stable tag>

5) Create the stable branch:

$ git checkout -b <branch stable name>

6) Check if you are in stable branch:

$ git branch