diff options
-rw-r--r-- | README.txt | 6 | ||||
-rw-r--r-- | cmd/git-lfs-server/main.go | 2 |
2 files changed, 8 insertions, 0 deletions
@@ -3,3 +3,9 @@ gitolfs3 | |||
3 | 3 | ||
4 | Yes, this is indeed an integration between Gitolite, Git LFS and Scaleway | 4 | Yes, this is indeed an integration between Gitolite, Git LFS and Scaleway |
5 | Object Storage. | 5 | Object Storage. |
6 | |||
7 | To be honest, the code is pretty bad right now and solely serves my needs. | ||
8 | Although I will be doing some cleanups, I have no interest in making this | ||
9 | program work for people with different use cases than me. In case you want to | ||
10 | use this software, feel free to, but expect that you will basically have to | ||
11 | 'make it your own'. | ||
diff --git a/cmd/git-lfs-server/main.go b/cmd/git-lfs-server/main.go index b13f997..e5c0788 100644 --- a/cmd/git-lfs-server/main.go +++ b/cmd/git-lfs-server/main.go | |||
@@ -484,11 +484,13 @@ func (h *handler) handleGetObject(w http.ResponseWriter, r *http.Request, repo, | |||
484 | if err != nil { | 484 | if err != nil { |
485 | reqlog(ctx, "Failed to stat: %s", err) | 485 | reqlog(ctx, "Failed to stat: %s", err) |
486 | makeRespError(ctx, w, "Internal server error", http.StatusInternalServerError) | 486 | makeRespError(ctx, w, "Internal server error", http.StatusInternalServerError) |
487 | return | ||
487 | } | 488 | } |
488 | 489 | ||
489 | if stat.Size != claims.Gitolfs3.Size { | 490 | if stat.Size != claims.Gitolfs3.Size { |
490 | reqlog(ctx, "Claims size does not match S3 object size") | 491 | reqlog(ctx, "Claims size does not match S3 object size") |
491 | makeRespError(ctx, w, "Internal server error", http.StatusInternalServerError) | 492 | makeRespError(ctx, w, "Internal server error", http.StatusInternalServerError) |
493 | return | ||
492 | } | 494 | } |
493 | 495 | ||
494 | w.Header().Set("Content-Length", strconv.FormatInt(claims.Gitolfs3.Size, 10)) | 496 | w.Header().Set("Content-Length", strconv.FormatInt(claims.Gitolfs3.Size, 10)) |