mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-10 12:09:31 +00:00
tools/cl: add 'fetch origin' before 'checkout -B'
'checkout -B' would fail if 'origin' isn't fetched or is too outdated. BUG=None TEST=tools/cl # on a repo where 'origin' isn't fetched Change-Id: I13a5d8a3796c4c9002243902a5f8d145dc9393ef Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3844820 Tested-by: Victor Ding <victording@chromium.org> Reviewed-by: Dennis Kempin <denniskempin@google.com> Commit-Queue: Victor Ding <victording@chromium.org> Auto-Submit: Victor Ding <victording@chromium.org>
This commit is contained in:
parent
48fbede24a
commit
cb243d3ef0
1 changed files with 1 additions and 0 deletions
1
tools/cl
1
tools/cl
|
@ -188,6 +188,7 @@ def rebase():
|
|||
rev = git("rev-parse", upstream_branch_name).stdout(check=False)
|
||||
if rev:
|
||||
print(f"Leaving behind previous revision of {upstream_branch_name}: {rev}")
|
||||
git("fetch origin").fg()
|
||||
git("checkout -B", upstream_branch_name, "origin/main").fg(quiet=True)
|
||||
|
||||
print(f"Cherry-picking changes from {branch_name}")
|
||||
|
|
Loading…
Reference in a new issue