Commit Graph

11 Commits (d88d7f5ce36c2a8a226344e321164e3b2fd8b603)

Author SHA1 Message Date
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 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 adb7a0ceec Print an error message if git crup doesn't run hooks because of an error
BUG=171501
R=szager@chromium.org


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@178357 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 518597c50c A git extension for running post-sync hooks.
TBR=cmp@chromium.org
Review URL: https://codereview.chromium.org/11362025

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@165295 0039d316-1c4b-4281-b951-d872f2087c98
13 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
szager@chromium.org 8cfdb58a0f Fix handling of optional argument to -j.
Review URL: https://chromiumcodereview.appspot.com/10830108

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@149649 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
cmp@chromium.org 592ef965fb Fix typo in git-crup.
TBR=szager@chromium.org


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@149322 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
szager@chromium.org 4b522db6bf Call `git submodule sync` to update upstream URL's, if necessary.
TBR=cmp@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@149319 0039d316-1c4b-4281-b951-d872f2087c98
13 years ago
szager@chromium.org d1a15a07ff Convenience script to update a submodule-based checkout.
Review URL: https://chromiumcodereview.appspot.com/10820057

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