From 209d8b0187ed025dec9ac149ebcced3462877bff Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Fri, 29 Dec 2023 20:38:46 +0100 Subject: Add 'lfs/objects' part to path --- cmd/git-lfs-server/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/git-lfs-server/main.go b/cmd/git-lfs-server/main.go index c5b47a3..fc32f41 100644 --- a/cmd/git-lfs-server/main.go +++ b/cmd/git-lfs-server/main.go @@ -141,7 +141,7 @@ func makeObjError(obj parsedBatchObject, message string, code int) batchResponse } func (h *handler) handleDownloadObject(ctx context.Context, repo string, obj parsedBatchObject) batchResponseObject { - fullPath := path.Join(repo, obj.firstByte, obj.secondByte, obj.fullHash) + fullPath := path.Join(repo, "lfs/objects", obj.firstByte, obj.secondByte, obj.fullHash) expiresIn := time.Hour * 24 expiresInSeconds := SecondDuration(expiresIn) -- cgit v1.2.3