mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 21:16:57 +02:00
Don't mask out errors in cros_mark_as_stable
Change-Id: Ib6722b99008f8515aecc3f27896963291d197947 Review URL: http://codereview.chromium.org/3130031
This commit is contained in:
parent
fb0160fe6d
commit
a33a445a8d
@ -137,15 +137,11 @@ def _PushChange():
|
||||
_RunCommand('git remote update')
|
||||
_RunCommand('git checkout -b %s %s' % (
|
||||
merge_branch_name, gflags.FLAGS.tracking_branch))
|
||||
try:
|
||||
_RunCommand('git merge --squash %s' % _STABLE_BRANCH_NAME)
|
||||
_RunCommand('git commit -m "%s"' % description)
|
||||
# Ugh. There has got to be an easier way to push to a tracking branch
|
||||
_RunCommand('git config push.default tracking')
|
||||
_RunCommand('git push')
|
||||
finally:
|
||||
_RunCommand('git checkout %s' % _STABLE_BRANCH_NAME)
|
||||
_RunCommand('git branch -D %s' % merge_branch_name)
|
||||
_RunCommand('git merge --squash %s' % _STABLE_BRANCH_NAME)
|
||||
_RunCommand('git commit -m "%s"' % description)
|
||||
# Ugh. There has got to be an easier way to push to a tracking branch
|
||||
_RunCommand('git config push.default tracking')
|
||||
_RunCommand('git push')
|
||||
|
||||
|
||||
def _RunCommand(command):
|
||||
|
Loading…
Reference in New Issue
Block a user