)]}'
{
  "commit": "92c2312faa9be064ab67329d5f73e54afb172ac2",
  "tree": "800decc50e167d08a5309ff3b35c863ab80123cd",
  "parents": [
    "14d0c555de8979c621c21e87adec0ff00d4cc929"
  ],
  "author": {
    "name": "adityaanikam",
    "email": "adityanikam9502@gmail.com",
    "time": "Tue Aug 25 17:15:14 2026 +0530"
  },
  "committer": {
    "name": "Matthias Sohn",
    "email": "matthias.sohn@sap.com",
    "time": "Tue Sep 01 09:08:28 2026 +0200"
  },
  "message": "Fix NPE in close() with nothing to fetch\n\noutNeedsEnd tracks whether close() still needs to send the closing\nflush packet for the current request. lsRefsImpl() already sends and\nends the ls-refs request itself but never clears the flag, and\ndoFetch()/doFetchV2() only clear it on the branch where sendWants()\nfound something to ask for.\n\nWhen a fetch needs no new objects, sendWants() returns false and no\nrequest is sent, leaving outNeedsEnd set from whichever request last\nset it. close() then calls pckOut.end() again on that request\u0027s\nstream. Once the stream has grown past http.postBuffer it has\nalready switched to, written, and closed its overflow output;\nwriting to it again reaches TemporaryBuffer.last() with blocks null,\nthrowing a NullPointerException.\n\nClear outNeedsEnd in all three places once no further write is\nneeded on the current stream, so close() has nothing left to do.\n\nAdded testFetch_NothingToFetchWithSmallPostBuffer, which reproduces\nthe NPE with a tiny http.postbuffer and a fetch that only needs to\ncreate a new local ref pointing at an already-present commit.\n\nBug: jgit-285\nChange-Id: I42ffa0bb9a900eb292405e2a0412a95649cbd962\nSigned-off-by: adityaanikam \u003cadityanikam9502@gmail.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "84b9fe6e1e0ce59c5bb1e03f8d8126a7acae1f23",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/SmartClientSmartServerTest.java",
      "new_id": "022ede7b45160c4b88749da10c59c8b494e72e96",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/SmartClientSmartServerTest.java"
    },
    {
      "type": "modify",
      "old_id": "bac5025f83cb7c96ccea2bcf4357b4319e10d880",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackConnection.java",
      "new_id": "4258ceb7909972c453f6741444b4315e0ea0153d",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackConnection.java"
    },
    {
      "type": "modify",
      "old_id": "be0d37b96eece711e85cbf991f5516eb71f3a2fd",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java",
      "new_id": "444c89a2a1407fc1fa8138595cde6abca69a5a73",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java"
    }
  ]
}
