Upload current branch to studio/aosp when releasing
Change-Id: Ia1686007f23945997c46d342bdb1542fa669e23d
diff --git a/tools/r8_release.py b/tools/r8_release.py
index 0e32525..b60c2de 100755
--- a/tools/r8_release.py
+++ b/tools/r8_release.py
@@ -193,7 +193,8 @@
# Don't upload if requested not to, or if changes are not committed due
# to --use-existing-work-branch
if not options.no_upload and not options.use_existing_work_branch:
- process = subprocess.Popen(['repo', 'upload', '.', '--verify'],
+ process = subprocess.Popen(['repo', 'upload', '.', '--verify',
+ '--current-branch'],
stdin=subprocess.PIPE)
return process.communicate(input=b'y\n')[0]