mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-03 12:05:52 +01:00
fix missing commit of blob after lfs push
This commit is contained in:
@@ -246,10 +246,12 @@ public class ScmFileTransferServlet extends HttpServlet {
|
||||
|
||||
private void readBlobFromResponse(HttpServletRequest request, HttpServletResponse response, AnyLongObjectId objectId) throws IOException {
|
||||
|
||||
try (OutputStream blobOutputStream = blobStore.create(objectId.getName()).getOutputStream();
|
||||
Blob blob = blobStore.create(objectId.getName());
|
||||
try (OutputStream blobOutputStream = blob.getOutputStream();
|
||||
ServletInputStream requestInputStream = request.getInputStream()) {
|
||||
|
||||
IOUtil.copy(requestInputStream, blobOutputStream);
|
||||
blob.commit();
|
||||
|
||||
response.setContentType(Constants.CONTENT_TYPE_GIT_LFS_JSON);
|
||||
response.setStatus(HttpServletResponse.SC_OK);
|
||||
|
||||
Reference in New Issue
Block a user