aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar borenet@google.com <borenet@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-01-10 21:02:25 +0000
committerGravatar borenet@google.com <borenet@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-01-10 21:02:25 +0000
commit4d5e1366c9b1e4069c8feee31a68606a07e95480 (patch)
treee137401664bf3edad0183c67f4c6cb84bd46df6b
parent698dfa465c56d3062f38a5098f5d6d22a8629440 (diff)
Fixes to roll_deps for the bots
The bots are running an older version of git which does not support the -q/--quiet flag for branch or the --short flag for symbolic-ref. BUG= R=halcanary@google.com Review URL: https://codereview.chromium.org/134723002 git-svn-id: http://skia.googlecode.com/svn/trunk@13030 2bbb7eff-a529-9590-31e7-b0007b416f81
-rwxr-xr-xtools/roll_deps.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/roll_deps.py b/tools/roll_deps.py
index 2f98fb548c..10822f4d4c 100755
--- a/tools/roll_deps.py
+++ b/tools/roll_deps.py
@@ -577,8 +577,8 @@ class GitBranchCLUpload(object):
if self._stash:
vsp.check_call([git, 'stash', 'save'])
try:
- self._original_branch = vsp.strip_output(
- [git, 'symbolic-ref', '--short', 'HEAD'])
+ full_branch = vsp.strip_output([git, 'symbolic-ref', 'HEAD'])
+ self._original_branch = full_branch.split('/')[-1]
except (subprocess.CalledProcessError,):
self._original_branch = vsp.strip_output(
[git, 'rev-parse', 'HEAD'])
@@ -588,7 +588,7 @@ class GitBranchCLUpload(object):
if branch_exists(self._branch_name):
vsp.check_call([git, 'checkout', '-q', 'master'])
- vsp.check_call([git, 'branch', '-q', '-D', self._branch_name])
+ vsp.check_call([git, 'branch', '-D', self._branch_name])
vsp.check_call(
[git, 'checkout', '-q', '-b', self._branch_name, 'origin/master'])
@@ -632,7 +632,7 @@ class GitBranchCLUpload(object):
vsp.check_call([git, 'checkout', '-q', self._original_branch])
if self._config.default_branch_name == self._branch_name:
- vsp.check_call([git, 'branch', '-q', '-D', self._branch_name])
+ vsp.check_call([git, 'branch', '-D', self._branch_name])
if self._stash:
vsp.check_call([git, 'stash', 'pop'])