)]}'
{
  "commit": "40780130aa995872b777468c9ed60afe45af6601",
  "tree": "cc6a15723334f8a30fcfb6b96744528febd74920",
  "parents": [
    "4a695be3485a6f3189cef079ec1928ee192c96de"
  ],
  "author": {
    "name": "Amin Yahyaabadi",
    "email": "aminyahyaabadi74@gmail.com",
    "time": "Fri Oct 30 22:57:15 2020 -0500"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri Oct 30 20:57:15 2020 -0700"
  },
  "message": "fix: emsdk swallows/overwrites parts of PATH (#642)\n\nThis PR has three changes: \r\n\r\n1) Fixing --permanent flag:\r\nThe previous algorithm looped over the values of PATH 4 times to check conditions while these conditions are the opposite of each other. Also, the result did not include all the parts in the whole_path. \r\n\r\n\tI have combined these loops and fixed the algorithm, so no path is lost. Now using --permanent the PATH and Env variables are correctly updated.\r\n\r\n2) Fixing --system flag:\r\nNow, the system flag does not cause the PATH values to be overwritten/clobbered. The PATH/Env variables are correctly updated.\r\n\r\n3) Fixing flagless flag:\r\nWhen no flag is provided the value of process/shell is correctly updated and preserved.\r\n\r\nThis adds the tests for all the situations.\r\n\r\nFixes #634\r\nFixes #645 \r\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7994d6d896d5ae16038ee44ca283740464c1446b",
      "old_mode": 33188,
      "old_path": ".circleci/config.yml",
      "new_id": "d5ff7d6309cac3805e700bcd7f4d1305317d0dcb",
      "new_mode": 33188,
      "new_path": ".circleci/config.yml"
    },
    {
      "type": "modify",
      "old_id": "503224444de30a85a25c9b8c428d63c6226d5682",
      "old_mode": 33188,
      "old_path": "emsdk.py",
      "new_id": "1e33b941eb9a5629d4c346df7ea79faff9774351",
      "new_mode": 33188,
      "new_path": "emsdk.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "98ebada623fbcd6351e1854a70a99bb8d07900dc",
      "new_mode": 33188,
      "new_path": "scripts/test_activation.ps1"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "79a42d93bd648530ea64a5b02fbd410419288182",
      "new_mode": 33188,
      "new_path": "scripts/test_path_preservation.ps1"
    },
    {
      "type": "delete",
      "old_id": "4c9da198bf460c1fb45aa8ea5b34e73720dfa42b",
      "old_mode": 33188,
      "old_path": "scripts/test_permanent.ps1",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    }
  ]
}
