From ce9541e0b0b96630c332c4769e9c7074c249f217 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Sat, 30 Dec 2023 00:36:05 +0100 Subject: Repo .git suffix --- cmd/git-lfs-server/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/git-lfs-server/main.go') diff --git a/cmd/git-lfs-server/main.go b/cmd/git-lfs-server/main.go index 4ff62f6..c3f4e91 100644 --- a/cmd/git-lfs-server/main.go +++ b/cmd/git-lfs-server/main.go @@ -146,7 +146,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, "lfs/objects", obj.firstByte, obj.secondByte, obj.fullHash) + fullPath := path.Join(repo+".git", "lfs/objects", obj.firstByte, obj.secondByte, obj.fullHash) expiresIn := time.Hour * 24 expiresInSeconds := SecondDuration(expiresIn) -- cgit v1.2.3