Add --bypass-hooks option to release script

Change-Id: If8f4802219ed6321124e9fa9292bc383ca453ec6
diff --git a/tools/r8_release.py b/tools/r8_release.py
index c5c5f51..347b29b 100755
--- a/tools/r8_release.py
+++ b/tools/r8_release.py
@@ -119,7 +119,10 @@
 
         validate_version_change_diff(version_diff_output, "main", version)
 
-        maybe_check_call(args, ['git', 'cl', 'upload', '--no-squash'])
+        cmd = ['git', 'cl', 'upload', '--no-squash']
+        if args.bypass_hooks:
+           cmd.append('--bypass-hooks')
+        maybe_check_call(args, cmd)
 
         if args.dry_run:
           input(
@@ -966,6 +969,10 @@
                       default=False,
                       action='store_true',
                       help='Delete CL in google3')
+  result.add_argument('--bypass-hooks', '--bypass_hooks',
+                      default=False,
+                      action='store_true',
+                      help="Bypass hooks when uploading")
   result.add_argument('--no-upload', '--no_upload',
                       default=False,
                       action='store_true',