Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Unified Diff: cros_mark_as_stable.py

Issue 3076035: cros_mark_as_stable: make it work better in repo (Closed) Base URL: http://src.chromium.org/git/crosutils.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cros_mark_as_stable.py
diff --git a/cros_mark_as_stable.py b/cros_mark_as_stable.py
index 7c9a230153c563473643f001764762a17c5d4e14..d9373c05efc2d11412b71f3e3649437528efc02a 100755
--- a/cros_mark_as_stable.py
+++ b/cros_mark_as_stable.py
@@ -91,10 +91,8 @@ def _CheckSaneArguments(package_list, commit_id_list, command):
def _Clean():
"""Cleans up uncommitted changes on either stabilizing branch or master."""
- if _CheckOnStabilizingBranch():
- _RunCommand('git reset HEAD --hard')
- _RunCommand('git checkout master')
_RunCommand('git reset HEAD --hard')
+ _RunCommand('git checkout %s' % gflags.FLAGS.tracking_branch)
def _PrintUsageAndDie(error_message=''):
@@ -179,7 +177,7 @@ class _GitBranch(object):
Returns True on success.
"""
- self._Checkout('master', create=False)
+ self._Checkout(gflags.FLAGS.tracking_branch, create=False)
delete_cmd = 'git branch -D %s' % self.branch_name
_RunCommand(delete_cmd)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698