2012-05-23 22:44:11 +00:00
|
|
|
=========================================
|
|
|
|
Cloning the Ceph Source Code Repository
|
|
|
|
=========================================
|
2012-06-09 21:45:05 +00:00
|
|
|
To clone the source, you must install Git. See `Set Up Git`_ for details.
|
2012-05-23 22:44:11 +00:00
|
|
|
|
2012-06-09 21:45:05 +00:00
|
|
|
.. _Set Up Git: ../git
|
2012-05-23 22:44:11 +00:00
|
|
|
|
|
|
|
Clone the Source
|
|
|
|
----------------
|
|
|
|
To clone the Ceph source code repository, execute::
|
|
|
|
|
2012-08-02 15:27:55 +00:00
|
|
|
git clone --recursive https://github.com/ceph/ceph.git
|
2012-05-23 22:44:11 +00:00
|
|
|
|
|
|
|
Once ``git clone`` executes, you should have a full copy of the Ceph
|
|
|
|
repository.
|
|
|
|
|
2012-08-02 15:27:55 +00:00
|
|
|
.. tip:: Make sure you maintain the latest copies of the submodules
|
|
|
|
included in the repository. Running ``git status`` will tell you if
|
|
|
|
the submodules are out of date::
|
2012-05-23 22:44:11 +00:00
|
|
|
|
2012-08-02 15:31:26 +00:00
|
|
|
cd ceph
|
2012-05-23 22:44:11 +00:00
|
|
|
git status
|
|
|
|
|
2012-08-02 15:29:50 +00:00
|
|
|
If they are, run::
|
|
|
|
|
|
|
|
git submodule update
|
|
|
|
|
2012-05-23 22:44:11 +00:00
|
|
|
Choose a Branch
|
|
|
|
---------------
|
|
|
|
Once you clone the source code and submodules, your Ceph repository
|
|
|
|
will be on the ``master`` branch by default, which is the unstable
|
|
|
|
development branch. You may choose other branches too.
|
|
|
|
|
|
|
|
- ``master``: The unstable development branch.
|
|
|
|
- ``stable``: The bugfix branch.
|
|
|
|
- ``next``: The release candidate branch.
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
git checkout master
|