diff options
author | Rutger Broekhoff | 2023-12-29 20:38:46 +0100 |
---|---|---|
committer | Rutger Broekhoff | 2023-12-29 20:38:46 +0100 |
commit | 209d8b0187ed025dec9ac149ebcced3462877bff (patch) | |
tree | 2baf762bc6fb645dfd80231eaee6baaac9411f69 /cmd | |
parent | 77f852e06d3be7cb558be73d6edc98d30cb52d65 (diff) | |
download | gitolfs3-209d8b0187ed025dec9ac149ebcced3462877bff.tar.gz gitolfs3-209d8b0187ed025dec9ac149ebcced3462877bff.zip |
Add 'lfs/objects' part to path
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/git-lfs-server/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
141 | } | 141 | } |
142 | 142 | ||
143 | func (h *handler) handleDownloadObject(ctx context.Context, repo string, obj parsedBatchObject) batchResponseObject { | 143 | func (h *handler) handleDownloadObject(ctx context.Context, repo string, obj parsedBatchObject) batchResponseObject { |
144 | fullPath := path.Join(repo, obj.firstByte, obj.secondByte, obj.fullHash) | 144 | fullPath := path.Join(repo, "lfs/objects", obj.firstByte, obj.secondByte, obj.fullHash) |
145 | expiresIn := time.Hour * 24 | 145 | expiresIn := time.Hour * 24 |
146 | expiresInSeconds := SecondDuration(expiresIn) | 146 | expiresInSeconds := SecondDuration(expiresIn) |
147 | 147 | ||