)]}'
{
  "commit": "643f918d13906cbccdc5ad188767fc7895e30fc1",
  "tree": "d7896325086bc80f5ee80002e78fcf8b44815d22",
  "parents": [
    "2856cbf0ae604c233e7dc62ba7931a469165ce4f"
  ],
  "author": {
    "name": "Jeff King",
    "email": "peff@peff.net",
    "time": "Wed Sep 18 16:35:13 2013 -0400"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Wed Sep 18 14:36:40 2013 -0700"
  },
  "message": "clone: always set transport options\n\nA clone will always create a transport struct, whether we\nare cloning locally or using an actual protocol. In the\nlocal case, we only use the transport to get the list of\nrefs, and then transfer the objects out-of-band.\n\nHowever, there are many options that we do not bother\nsetting up in the local case. For the most part, these are\nnoops, because they only affect the object-fetching stage\n(e.g., the --depth option).  However, some options do have a\nvisible impact. For example, giving the path to upload-pack\nvia \"-u\" does not currently work for a local clone, even\nthough we need upload-pack to get the ref list.\n\nWe can just drop the conditional entirely and set these\noptions for both local and non-local clones. Rather than\nkeep track of which options impact the object versus the ref\nfetching stage, we can simply let the noops be noops (and\nthe cost of setting the options in the first place is not\nhigh).\n\nThe one exception is that we also check that the transport\nprovides both a \"get_refs_list\" and a \"fetch\" method. We\nwill now be checking the former for both cases (which is\ngood, since a transport that cannot fetch refs would not\nwork for a local clone), and we tweak the conditional to\ncheck for a \"fetch\" only when we are non-local.\n\nSigned-off-by: Jeff King \u003cpeff@peff.net\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "72cc40a1cc51816b6e10536e2f5e5ecdd5351f16",
      "old_mode": 33188,
      "old_path": "builtin/clone.c",
      "new_id": "63f298be9c991e50e476f21cdbbc333d849a734a",
      "new_mode": 33188,
      "new_path": "builtin/clone.c"
    },
    {
      "type": "modify",
      "old_id": "7ff6e0e16cbeb014c1ea551392a63beca2dbc386",
      "old_mode": 33261,
      "old_path": "t/t5701-clone-local.sh",
      "new_id": "c4903687fbc801ffd1db9e619065996f97986ccb",
      "new_mode": 33261,
      "new_path": "t/t5701-clone-local.sh"
    }
  ]
}
