[TYPO3-v4] Working with submodules
Oliver Hader
oliver.hader at typo3.org
Tue May 10 12:01:50 CEST 2011
Hi Andreas,
Am 10.05.11 11:31, schrieb Andreas Kiessling:
> Hi,
>
>> Currently the submodules point to these revisions:
>>
>> master:
>> workspaces: 893743048f1f6e1b853ad2da1561e0e21264cc83
>> version: bc4d09579bc8310d81d0eb82a2382b741d4a416e
>>
>> 4_5:
>> workspaces: 07282260a6719036c8bf2c7fb1ec1273ef02511c
>> version: bf1f1d02542bc496b35d03b88dc952fa0ae18179
>>
>> Which are exactly the last ones in the respective repositories:
>>
>> http://git.typo3.org/TYPO3v4/CoreProjects/workspaces/workspaces.git
>> http://git.typo3.org/TYPO3v4/CoreProjects/workspaces/version.git
>
> Does that mean, when i switch to the 4_5 branch of Core, workspaces and
> version does automatically switch too?
Imagine you're on master, then you need to do the following:
# git checkout TYPO3_4-5
# git pull
# git submodule update --init
The "pull" ensures that you get the recent submodule pointers. The
"--init" parameter ensures that the submodules are initialized correctly
if it's the first time on the accordant branch - if initialization is
not required, Git will just do the update - thus "--init" does not hurt.
The difference between svn:externals and the Git submodule is, that in
the Git world a pointer to a specific commit in the submodule is used.
If something is changed in the submodule then the pointer has to be
raised in the super project (TYPO3 Core in this case). Raising the
pointers will be done by the Release Team or any automatic script later on.
olly
--
Oliver Hader
TYPO3 v4 Core Team Leader
TYPO3 .... inspiring people to share!
Get involved: http://typo3.org
More information about the TYPO3-project-v4
mailing list