Index: cros_mark_as_stable.py |
diff --git a/cros_mark_as_stable.py b/cros_mark_as_stable.py |
index 6daf9bb6972ac90acf79c01e1d940400b275d5fb..eff1bda02356e219b25e44e155310b7b51e3c0e1 100755 |
--- a/cros_mark_as_stable.py |
+++ b/cros_mark_as_stable.py |
@@ -126,8 +126,10 @@ def _PushChange(): |
# Sanity check to make sure we're on a stabilizing branch before pushing. |
if not _CheckOnStabilizingBranch(): |
- generate_test_report.Die('Expected %s to be on branch "%s"' % |
- (os.getcwd(), _STABLE_BRANCH_NAME)) |
+ print 'Not on branch %s so no work found to push. Exiting' % \ |
+ _STABLE_BRANCH_NAME |
+ return |
+ |
description = _RunCommand('git log --format=format:%s%n%n%b ' + |
gflags.FLAGS.tracking_branch + '..') |
description = 'Marking set of ebuilds as stable\n\n%s' % description |