Add attempt to update remote and rebase before pushing

TEST=Ran cros_mark_all

Review URL: http://codereview.chromium.org/3066010
This commit is contained in:
Chris Sosa 2010-07-28 13:21:32 -07:00
parent 9df55b2055
commit ffff7d76cc

View File

@ -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)