Internal change

PiperOrigin-RevId: 350607776
Change-Id: Ia8e75c222c452e51bbb2116409fd0f4bb2d849c6
diff --git a/tools/automate-git.py b/tools/automate-git.py
index 38344dc..0d02b60 100644
--- a/tools/automate-git.py
+++ b/tools/automate-git.py
@@ -347,7 +347,6 @@
     fp.write(u"""
 # Google-specific code starts here.
 import os
-import sys
 
 # Location of Google-specific patches.
 google_patch_path = %s
@@ -368,8 +367,7 @@
 # file will call register_google_patches one or more times to register patches.
 if os.path.isfile(google_patch_config_file):
   exec(compile(open(google_patch_config_file, 'rb').read(),
-               google_patch_config_file, 'exec'),
-       sys._getframe(1).f_globals)
+               google_patch_config_file, 'exec'))
 # Google-specific code ends here.
 """ % repr(google_patch_path))