Actions

Cloning the FLOW3 Base Distribution

Upload public ssh-key

  1. if not done yet, register a user account on typo3.org
  2. log in to http://review.typo3.org with your typo3.org user account.
  3. edit your profile(settings/SSH Public Keys) and upload public ssh key

Clone and setup

This assumes you have set up ssh (username and port) and git (username and email) already. You can copy and paste the following commands directly.

git clone --recursive git://git.typo3.org/FLOW3/Distributions/Base.git FLOW3
cd FLOW3
scp -p -P 29418 :hooks/commit-msg .git/hooks/
git config --global url."ssh::29418".pushInsteadOf git://git.typo3.org
//git config remote.origin.pushurl ssh://review.typo3.org:29418/FLOW3/Distributions/Base.git
git config remote.origin.push HEAD:refs/for/master
git submodule foreach 'scp -p -P 29418 :hooks/commit-msg .git/hooks/'
//git submodule foreach 'git config remote.origin.pushurl ssh://review.typo3.org:29418/FLOW3/Packages/`basename $path`.git'
git submodule foreach 'git config remote.origin.push HEAD:refs/for/master'
git submodule foreach 'git checkout master; git pull'

(Lots of output omitted)

We are using url.<>.pushInsteadOf now, and not pushurl. For some updated info on that, see http://wiki.typo3.org/Push_(Git)

You now have a clone of the FLOW3 Base Distribution.

What happens is the following:
  • Clone the FLOW3 distribution into the folder FLOW3. Do this recursively, i.e. set up submodules right away.
  • Change into the new directory
  • Install the gerrit commit-msg hook for the distribution clone
  • Configure review.typo3.org as default push target for submitting code for review (two lines)
  • Install the gerrit commit-msg hook for all submodule clones
  • Configure default push target for all submodule clones (two lines)
  • Switch all submodules to the master branch

Updated by Jacob Floyd over 9 years ago ยท 8 revisions