| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 # A convenience script to largely replicate the behavior of `gclient sync` in a | 6 # A convenience script to largely replicate the behavior of `gclient sync` in a |
| 7 # submodule-based checkout. Fetches latest commits for top-level solutions; | 7 # submodule-based checkout. Fetches latest commits for top-level solutions; |
| 8 # updates submodules; and runs post-sync hooks. | 8 # updates submodules; and runs post-sync hooks. |
| 9 | 9 |
| 10 # Auto-update depot_tools |
| 11 if [ -z "$GIT_CRUP_REINVOKE" ]; then |
| 12 update_depot_tools || exit 1 |
| 13 GIT_CRUP_REINVOKE=1 exec bash "$0" "$@" |
| 14 fi |
| 15 |
| 10 export GIT_MERGE_AUTOEDIT=0 | 16 export GIT_MERGE_AUTOEDIT=0 |
| 11 | 17 |
| 12 ECHO= | 18 ECHO= |
| 13 pull=pull | 19 pull=pull |
| 14 pull_args= | 20 pull_args= |
| 15 hooks=yes | 21 hooks=yes |
| 16 j=10 | 22 j=10 |
| 17 crup_runner="crup-runner.sh" | 23 crup_runner="crup-runner.sh" |
| 18 runhooks="git-runhooks" | 24 runhooks="git-runhooks" |
| 19 | 25 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 139 |
| 134 status=$? | 140 status=$? |
| 135 | 141 |
| 136 if [ "$hooks" = "yes" -a "$status" -eq 0 ]; then | 142 if [ "$hooks" = "yes" -a "$status" -eq 0 ]; then |
| 137 "$runhooks" | 143 "$runhooks" |
| 138 status=$? | 144 status=$? |
| 139 fi | 145 fi |
| 140 | 146 |
| 141 echo | 147 echo |
| 142 exit $status | 148 exit $status |
| OLD | NEW |