)]}'
{
  "commit": "60e47f67731e99f4d5bd8b20c406a0b4cd4b7985",
  "tree": "5d9844e6944d6d382c7dea6fb9abe5511f9d5808",
  "parents": [
    "3d20111cbd42c9ef3116bb629838bcbfea508cda"
  ],
  "author": {
    "name": "SZEDER Gábor",
    "email": "szeder.dev@gmail.com",
    "time": "Thu Jul 23 23:38:48 2020 +0200"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Thu Jul 23 15:32:06 2020 -0700"
  },
  "message": "ci: use absolute PYTHON_PATH in the Linux jobs\n\nIn our test suite, when \u0027git p4\u0027 invokes a Git command as a\nsubprocesses, then it should run the \u0027git\u0027 binary we are testing.\nUnfortunately, this is not the case in the \u0027linux-clang\u0027 and\n\u0027linux-gcc\u0027 jobs on Travis CI, where \u0027git p4\u0027 runs the system\n\u0027/usr/bin/git\u0027 instead.\n\nTravis CI\u0027s default Linux image includes \u0027pyenv\u0027, and all Python\ninvocations that involve PATH lookup go through \u0027pyenv\u0027, e.g. our\n\u0027PYTHON_PATH\u003d$(which python3)\u0027 sets \u0027/opt/pyenv/shims/python3\u0027 as\nPYTHON_PATH, which in turn will invoke \u0027/usr/bin/python3\u0027.  Alas, the\n\u0027pyenv\u0027 version included in this image is buggy, and prepends the\ndirectory containing the Python binary to PATH even if that is a\nsystem directory already in PATH near the end.  Consequently, \u0027git p4\u0027\nin those jobs ends up with its PATH starting with \u0027/usr/bin\u0027, and then\nruns \u0027/usr/bin/git\u0027.\n\nSo use the absolute paths \u0027/usr/bin/python{2,3}\u0027 explicitly when\nsetting PYTHON_PATH in those Linux jobs to avoid the PATH lookup and\nthus the bogus \u0027pyenv\u0027 from interfering with our \u0027git p4\u0027 tests.\nDon\u0027t bother with special-casing Travis CI: while this issue doesn\u0027t\naffect the corresponding Linux jobs on GitHub Actions, both CI systems\nuse Ubuntu LTS-based images, so we can safely rely on these Python\npaths.\n\nSigned-off-by: SZEDER Gábor \u003cszeder.dev@gmail.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ff24c547c8bb56a244eb5b1b3ca11e4bd32ea31a",
      "old_mode": 33261,
      "old_path": "ci/lib.sh",
      "new_id": "3eefec500d88336fdb2d1fc3f4e05a611fc7e009",
      "new_mode": 33261,
      "new_path": "ci/lib.sh"
    }
  ]
}
