)]}'
{
  "commit": "3ba5f95b46f06ed3d7382346de29ac550d749ec9",
  "tree": "7b38fcbfc0f0237102b4b94b68684b49cb2d0113",
  "parents": [
    "2630dd9787c1b75b70a980175ffa41b63f59e3b8"
  ],
  "author": {
    "name": "Doug Anderson",
    "email": "dianders@google.com",
    "time": "Thu Apr 07 12:51:04 2011 -0700"
  },
  "committer": {
    "name": "Shawn O. Pearce",
    "email": "sop@google.com",
    "time": "Thu Apr 07 16:55:35 2011 -0400"
  },
  "message": "Fixed repo checkout error message when git reports errors.\n\nIn the current version of repo checkout, we often get the error:\n  error: no project has branch xyzzy\n\n...even when the actual error was something else.  This fixes it\nto only report the \u0027no project has branch\u0027 when that is actually true.\n\nThis fix is very similar to one made for \u0027repo abandon\u0027:\n  https://review.source.android.com/#change,22207\n\nThe repo checkout error is filed as: \u003chttp://crosbug.com/6514\u003e\n\nTEST\u003dmanual\n\nA sample creating a case where \u0027git checkout\u0027 will fail:\n\n  $ repo start branch1 .\n  $ repo start branch2 .\n  $ touch bogusfile\n  $ git add bogusfile\n  $ git commit -m \"create bogus file\"\n  [branch2 f8b6b08] create bogus file\n   0 files changed, 0 insertions(+), 0 deletions(-)\n   create mode 100644 bogusfile\n  $ echo \"More\" \u003e\u003e bogusfile\n  $ repo checkout branch1 .\n  error: chromite/: cannot checkout branch1\n\nA sample case showing that we still fail if no project has a branch:\n\n  $ repo checkout xyzzy .\n  error: no project has branch xyzzy\n\nChange-Id: I48a8e258fa7a9c1f2800dafc683787204bbfcc63\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7ba1b38a51f4504bf1301fe0735855ae0f57e753",
      "old_mode": 33188,
      "old_path": "project.py",
      "new_id": "6252bd68ba11f333e631c6acf51fe3739434356b",
      "new_mode": 33188,
      "new_path": "project.py"
    },
    {
      "type": "modify",
      "old_id": "4198acd12ac35d3a7441ccc5677fd04a8fdacd64",
      "old_mode": 33188,
      "old_path": "subcmds/checkout.py",
      "new_id": "533d20e1906dd31c26f27a5181af64f221709ebc",
      "new_mode": 33188,
      "new_path": "subcmds/checkout.py"
    }
  ]
}
