)]}'
{
  "commit": "8eecb4f8b746bc01f09df02870e89d4bc4e118b9",
  "tree": "61d9a1c133d27d7342ce5b375ffb75202147035f",
  "parents": [
    "9caa94239aa15f38402344176fa32c09a2bd121c"
  ],
  "author": {
    "name": "Masaya Suzuki",
    "email": "masayasuzuki@google.com",
    "time": "Tue Dec 18 09:20:54 2018 -0800"
  },
  "committer": {
    "name": "Matthias Sohn",
    "email": "matthias.sohn@sap.com",
    "time": "Tue Dec 25 23:36:11 2018 +0100"
  },
  "message": "Call AdvertiseRefsHook for protocol v2\n\nAdvertiseRefsHook is used to limit the visibility of the refs in Gerrit.\nIf this hook is not called, then all refs are treated as visible.\n\nIn protocol v2, the hook is not called, causing the server to advertise\nall refs.  This bug was introduced in v5.0.0.201805221745-rc1~1^2~9\n(Execute AdvertiseRefsHook only for protocol v0 and v1, 2018-05-14).\n\nEven before then, the hook was not called in requests after the\ncapability advertisement, so in transports like HTTP that do not retain\nstate between round-trips, the server would advertise all refs in\nresponse to an ls-refs (ls-remote) request.\n\nFix both cases by using getAdvertisedOrDefaultRefs to retrieve the\nadvertised refs in lsRefs, ensuring the hook is called in all cases that\nuse its result.\n\n[jn: backported to stable-5.0; split out from a larger patch that also\n fixes protocol v0; avoided filtering this.refs by ref prefix]\n\nChange-Id: I64bce0e72d15b90baccc235c067e57b6af21b55f\nSigned-off-by: Masaya Suzuki \u003cmasayasuzuki@google.com\u003e\nSigned-off-by: Jonathan Nieder \u003cjrn@google.com\u003e\nSigned-off-by: Matthias Sohn \u003cmatthias.sohn@sap.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3255a71b3e3a92c8f9a15415fa1322d780c3b15b",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java",
      "new_id": "1cdf8f7f1b176babf1265d329b69a59aa13ad05f",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java"
    }
  ]
}
