mozilla-b2g/B2G — pull request #131 by ochameau (2012-10-01 18:16:06+00:00)
Title: Run `repo init` only once.

Here is a patch in order to simplify newcomers life.
We only run delete already checkouted projects and execute `repo init` when it is strictly necessary:
* when `repo init` wasn't ever run completely. (never run or run with failures),
* when repo were inited for another device.

It is extremelly frustating to have to checkout ~10GB of data when you face some dumb error during extract-file.sh later done in this script.

Possible tweaks on this patch:
* Move this `/.repo/inited` to `/.inited` or `/inited`.
* Do `repo sync` only once, right after the `repo init`. But I'm not sure it make any sense to do that!

[I haven't verified this patch yet, a fresh empty checkout is currently running]