)]}'
{
  "commit": "d01a8e32fe10f1086e5e427f85237baff218fb01",
  "tree": "4e5977b6d6487dcaf58add28d06dedbda342c3b7",
  "parents": [
    "c6dfb399448f6de17ce417052f1bb345c9e022c9"
  ],
  "author": {
    "name": "Björn Steinbrink",
    "email": "B.Steinbrink@gmx.de",
    "time": "Wed Oct 14 00:11:09 2009 +0200"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Wed Oct 14 01:19:15 2009 -0700"
  },
  "message": "clone: Supply the right commit hash to post-checkout when -b is used\n\nWhen we use -b \u003cbranch\u003e, we may checkout something else than what the\nremote\u0027s HEAD references, but we still used remote_head to supply the\nnew ref value to the post-checkout hook, which is wrong.\n\nSo instead of using remote_head to find the value to be passed to the\npost-checkout hook, we have to use our_head_points_at, which is always\ncorrectly setup, even if -b is not used.\n\nThis also fixes a segfault when \"clone -b \u003cbranch\u003e\" is used with a\nremote repo that doesn\u0027t have a valid HEAD, as in such a case\nremote_head is NULL, but we still tried to access it.\n\nReported-by: Devin Cofer \u003cranguvar@archlinux.us\u003e\nSigned-off-by: Björn Steinbrink \u003cB.Steinbrink@gmx.de\u003e\nAcked-by: Jeff King \u003cpeff@peff.net\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4992c2597c903d86ce1d0c209828aeb962fef23a",
      "old_mode": 33188,
      "old_path": "builtin-clone.c",
      "new_id": "5762a6f9d8191c79d4fd66d227038d59ab1e785e",
      "new_mode": 33188,
      "new_path": "builtin-clone.c"
    },
    {
      "type": "modify",
      "old_id": "d8d276a471b0c5a819ca1b2e02e9b3a6cd27cd73",
      "old_mode": 33188,
      "old_path": "remote-curl.c",
      "new_id": "2faf1c634415d139f15c4829937e0460be31dc1d",
      "new_mode": 33188,
      "new_path": "remote-curl.c"
    }
  ]
}
