Commit Graph

11 Commits (a3d7c4b3b7b3cc42a3b9f8c77fd566c676c5d351)

Author SHA1 Message Date
torne@chromium.org 547c64b1fd Allow multiple OSes to be checked out with git submodules.
Allow target.os to be a multivalue config option, which will cause
submodules required by any of the listed OSes to be checked out. You can
add additional OSes to the list with "git config --add target.os".

BUG=

Review URL: https://chromiumcodereview.appspot.com/13831004

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@193901 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
szager@chromium.org fdcecadb9c Refactor with fixes for msys-git.
- Check for -h|--help before anything is modified.
- Discard stderr from 'git submodule update'.
- Be careful not to overwrite script while it's executing
  on win.
- Run hooks by invoking 'git runhooks'.
- Fix --dry-run option.

R=iannucci@chromium.org
CC=jar@chromium.org,scottmg@chromium.org

BUG=


Review URL: https://chromiumcodereview.appspot.com/12865010

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@189926 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
szager@chromium.org eac8dafe53 Add --recursive arg to git-submodule update.
R=jam@chromium.org
BUG=


Review URL: https://chromiumcodereview.appspot.com/12717016

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@189082 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
szager@chromium.org 3113c8b158 Set default configs for ignoring submodule diffs.
TBR=mmoss@chromium.org

BUG=


Review URL: https://chromiumcodereview.appspot.com/12330179

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@185008 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
justinlin@chromium.org 0c16fe6f4a Fix git-crup errors when CDPATH is set.
Review URL: https://chromiumcodereview.appspot.com/12320043

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@184148 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
szager@chromium.org 69aea1659f Add --sync option, to only sync submodules.
Also add git-crsync as shorthand for `git crup --sync`.

TBR=iannucci@chromium.org

BUG=

Review URL: https://codereview.chromium.org/12279006

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@182767 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
jochen@chromium.org 009264f9cc Correctly forward error code when git pull fails in crup-runner.sh
The old code would always exit 0, because it returned the exit status of the if command

BUG=none
TEST=try to run git crup in src/ with unstaged changes. Should bail out and not run hooks
R=szager@chromium.org


Review URL: https://chromiumcodereview.appspot.com/12040046

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@178356 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
jochen@chromium.org d2d1861474 Add a heuristic to skip git checkouts not managed by crup
BUG=171500
R=szager@chromium.org


Review URL: https://chromiumcodereview.appspot.com/12051022

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@178350 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
szager@chromium.org e5599b1f44 Another round of refactoring and optimizing.
Call update_depot_tools and re-invoke from git-crup, to get latest
updates.

Move more of the target os functionality into git-crup.sh, so there's
no longer a need for a first-checkout script.

`git submodule sync` is horribly slow on windows.  Replicate the
functionality (but faster) in git-crup.sh.

TBR=mmoss@chromium.org,cmp@chromium.org
Review URL: https://codereview.chromium.org/11709003

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@174747 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
szager@chromium.org a79f5cf754 Some polishing...
If the working copy isn't on a named branch, don't try to
pull; just fetch.

Use --quiet flag to git-submodule, to prevent interleaving of
terminal output.

Check target os before updating a submodule.

TBR'ing, since no one really has a stake in this, and maruel doesn't
do bash :).

TBR=maruel@chromium.org
Review URL: https://codereview.chromium.org/11645056

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@174280 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
szager@google.com c1200a8559 Keep the parallel execution pipes full as much as possible.
Rearrange some of the pipe redirections to avoid crashing on Windows.

TBR=cmp@chromium.org
Review URL: https://codereview.chromium.org/11260036

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@164140 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago