Allow passing a commit hash as version.
This makes it easier to upload master versions to aosp/studio for
bisecting.
Change-Id: I2db76e8c797504040498afab8f61751a4d7811bc
diff --git a/tools/r8_release.py b/tools/r8_release.py
index d356586..72a5e02 100755
--- a/tools/r8_release.py
+++ b/tools/r8_release.py
@@ -163,7 +163,8 @@
def update_prebuilds(r8_checkout, version, checkout):
path = os.path.join(r8_checkout, 'tools', 'update_prebuilds_in_android.py')
- subprocess.check_call([path, '--targets=lib', '--maps', '--version=' + version, checkout])
+ commit_arg = '--commit_hash=' if len(version) == 40 else '--version='
+ subprocess.check_call([path, '--targets=lib', '--maps', commit_arg + version, checkout])
def release_studio_or_aosp(r8_checkout, path, options, git_message):