[TYPO3-v4] Working with submodules

Steffen Gebert steffen.gebert at typo3.org
Mon May 9 23:01:02 CEST 2011


On 09.05.11 19:24, Stefano Kowalke wrote:
> Today git submodules was introduced in core for the external projects
> "version" and "workspaces".
Yes.. I'd have an public announcement in this list preferred. But it's 
work in progress ;)

> 1)
> Unfortunable the revisions of where the submodules created from were not
> up-to-date. As result fixed issues popped up again. I noticed this on
> fixed CGL issues, so it is possible that all issues realted to verion
> and workspaces since mid of april are back again.
The submodule point to an older commit?

> 2)
> How works submodules in context of TYPO3 and gerrit? Where have I pushed
> things to?
Submodules have to be initialized:
> git pull
> git submodule update --init
>
> Additionally, if you want to commit to these submodules, the commit
> hooks need to be initialized there as well:
>
> git submodule foreach 'scp -p -P 29418
> <username>@review.typo3.org:hooks/commit-msg .git/hooks/'
>
I would say git will decide for you. Workspaces/version have their own 
repository. If you're inside the sysext/{workspaces,version/ folder and 
push, it will probably push to the correct repository.

I'm currently looking (again) at `repo`, which was created together with 
gerrit for android development.. maybe it helps us.

Kind regards
Steffen

-- 
Steffen Gebert
TYPO3 v4 Core Team Member

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org


More information about the TYPO3-project-v4 mailing list