)]}'
{
  "commit": "078688213f321ac52c224c1cfa264d686c7264bd",
  "tree": "c4ae752083995ed684075405dc490e5edbb0bcba",
  "parents": [
    "1b89eaa4bef44ef84f2af611d5db8727e3be266c"
  ],
  "author": {
    "name": "Johannes Sixt",
    "email": "j6t@kdbg.org",
    "time": "Sun Apr 12 21:22:02 2009 +0200"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Sun Apr 12 13:34:06 2009 -0700"
  },
  "message": "t1301-shared-repo: fix forced modes test\n\nThis test was added recently (5a688fe, \"core.sharedrepository \u003d 0mode\"\nshould set, not loosen; 2009-03-28). It checked the result of a sed\ninvocation for emptyness, but in some cases it forgot to print anything\nat all, so that those checks would never be false.\n\nDue to this mistake, it went unnoticed that the files in objects/info are\nnot necessarily 0440, but can also be 0660.  Because the 0mode setting\ntries to guarantee that the files are accessible only to the people they\nare meant to be used by, we should only make sure that they are readable\nby the user and the group when the configuration is set to 0660.  It is a\nseparate matter from the core.shredrepository settings that w-bit from\nimmutable object files under objects/[0-9a-f][0-9a-f] directories should\nbe dropped.\n\nCOMMIT_EDITMSG is still world-readable, but it (and any transient files\nthat are meant for repositories with a work tree) does not matter.  If you\nare working on a shared machine and on a sekrit stuff, the root of the\nwork tree would be with mode 0700 (or 0750 to allow peeking by other\npeople in the group), and that would mean that .git/COMMIT_EDITMSG in such\na repository would not be readable by the strangers anyway.\n\nAlso, in the real-world use case, .git/COMMIT_EDITMSG will be given to an\narbitrary editor the user happens to use, and we have no guarantee what it\ndoes (e.g. it may create a new file with umask and replace, it may rewrite\nin place, it may leave an editor backup file but use umask to create it,\netc.), and the protection of the file lies majorly on the protection of\nthe root of the work tree.\n\nThis test cannot be run on Windows; it requires POSIXPERM when merged to\n\u0027master\u0027.\n\nSigned-off-by: Johannes Sixt \u003cj6t@kdbg.org\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3c8a2373ac0bf8e6e9737df3fec3b7d66d044a18",
      "old_mode": 33261,
      "old_path": "t/t1301-shared-repo.sh",
      "new_id": "3fddc9ee781ba9fb5d189bbc5ec0b900b159723a",
      "new_mode": 33261,
      "new_path": "t/t1301-shared-repo.sh"
    }
  ]
}
