Index: cros_mark_as_stable.py |
diff --git a/cros_mark_as_stable.py b/cros_mark_as_stable.py |
index 91bd48f6f0fc5b8d38906850ff34323cab729374..e71813b022db3fb2d731b77876e8cabbee64401e 100755 |
--- a/cros_mark_as_stable.py |
+++ b/cros_mark_as_stable.py |
@@ -133,6 +133,8 @@ def _PushChange(): |
_STABLE_BRANCH_NAME)) |
_RunCommand('git cl upload --desc_from_logs -m "%s"' % |
'Marking set of ebuilds as stable') |
+ _RunCommand('git remote update') |
+ _RunCommand('git rebase origin/master') |
_RunCommand('git cl push %s' % gflags.FLAGS.push_options) |