def restore()

in hack/create_kptfile.py [0:0]


  def restore():
    subdirs = ["gcp/cloud-endpoints", "gcp/deployment_manager_configs",
               "gcp/gpu-driver", "gcp/iap-ingress",
               "gcp/prometheus", "gcp/privateutil"]
    for subdir in subdirs:
      subprocess.check_call(["git", "checkout", "upstream/master", subdir])