)]}'
{
  "commit": "3be4cf09cd3d0747af3ecdb8dc3962a0969b731e",
  "tree": "1bc7773276b260a31f29bb335c6ce97f5632f6f4",
  "parents": [
    "2491f77b90c2e5d47acbe7472c17e7de0af74f63"
  ],
  "author": {
    "name": "Jeff King",
    "email": "peff@peff.net",
    "time": "Fri Jul 28 15:26:50 2017 -0400"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Fri Jul 28 15:52:18 2017 -0700"
  },
  "message": "connect: reject dashed arguments for proxy commands\n\nIf you have a GIT_PROXY_COMMAND configured, we will run it\nwith the host/port on the command-line. If a URL contains a\nmischievous host like \"--foo\", we don\u0027t know how the proxy\ncommand may handle it. It\u0027s likely to break, but it may also\ndo something dangerous and unwanted (technically it could\neven do something useful, but that seems unlikely).\n\nWe should err on the side of caution and reject this before\nwe even run the command.\n\nThe hostname check matches the one we do in a similar\ncircumstance for ssh. The port check is not present for ssh,\nbut there it\u0027s not necessary because the syntax is \"-p\n\u003cport\u003e\", and there\u0027s no ambiguity on the parsing side.\n\nIt\u0027s not clear whether you can actually get a negative port\nto the proxy here or not. Doing:\n\n  git fetch git://remote:-1234/repo.git\n\nkeeps the \"-1234\" as part of the hostname, with the default\nport of 9418. But it\u0027s a good idea to keep this check close\nto the point of running the command to make it clear that\nthere\u0027s no way to circumvent it (and at worst it serves as a\nbelt-and-suspenders check).\n\nSigned-off-by: Jeff King \u003cpeff@peff.net\u003e\nReviewed-by: Jonathan Nieder \u003cjrnieder@gmail.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a0091acb1f06a8af6fc34fc6d5c474cb633d3827",
      "old_mode": 33188,
      "old_path": "connect.c",
      "new_id": "bdf2ca08acdbf6c551b782ece5ebc8c5f15b35e9",
      "new_mode": 33188,
      "new_path": "connect.c"
    },
    {
      "type": "modify",
      "old_id": "5531bd1af42dac808d64d75a6fc3e848ef968a34",
      "old_mode": 33261,
      "old_path": "t/t5532-fetch-proxy.sh",
      "new_id": "d3b2651b6114e6db50464d25d2b6dc6fa700c903",
      "new_mode": 33261,
      "new_path": "t/t5532-fetch-proxy.sh"
    }
  ]
}
