)]}'
{
  "commit": "ddce7235ef29a0aba727c265eae865d15af4ed09",
  "tree": "6078831e49d8b99cd136cf04376b722078635108",
  "parents": [
    "b7a961517f928e6539b62f73bcb5b1c311396559"
  ],
  "author": {
    "name": "Keith Smiley",
    "email": "keithbsmiley@gmail.com",
    "time": "Tue May 21 15:08:42 2019 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Tue May 21 15:10:20 2019 -0700"
  },
  "message": "Avoid exporting PATH unnecessarily\n\nThis is a modification of PR #8415, which changed `which` to `command -v` so it works when PATH isn\u0027t exported. `command` is more standard for this kind of use case (https://github.com/koalaman/shellcheck/wiki/SC2230). Unfortunately, `command -v` doesn\u0027t check the executable bit, so it\u0027s not as useful for us.\n\nThe previous fix for this issue (https://github.com/bazelbuild/bazel/commit/7f495315749478e75a3424726cc273a535b7c3b8) was based on exporting PATH, but this changes the environment seen by the exec\u0027d payload Python code.\n\nThe solution in this commit is to not export PATH but rather explicitly pass it to each invocation of `which`.\n\nFixes #8414. See also bazelbuild/continuous-integration#578. Closes #8415.\n\nPiperOrigin-RevId: 249334274\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f4dbd02618c975710becf6bba26ef38a4bb0b448",
      "old_mode": 33188,
      "old_path": "tools/python/pywrapper_template.txt",
      "new_id": "d38720ddfb4e829dc9299f448b9628961e017d66",
      "new_mode": 33188,
      "new_path": "tools/python/pywrapper_template.txt"
    }
  ]
}
