From 5e6a008fba9a85c9a5319d93c1e52e183211a342 Mon Sep 17 00:00:00 2001 From: zeripath Date: Mon, 28 Oct 2019 18:31:55 +0000 Subject: Add basic repository lfs management (#7199) This PR adds basic repository LFS management UI including the ability to find all possible pointers within the repository. Locks are not managed at present but would be addable through some simple additions. * Add basic repository lfs management * add auto-associate function * Add functionality to find commits with this lfs file * Add link to find commits on the lfs file view * Adjust commit view to state the likely branch causing the commit * Only read Oid from database --- modules/lfs/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/lfs/server.go') diff --git a/modules/lfs/server.go b/modules/lfs/server.go index 6fa97a2894..dc498a86c8 100644 --- a/modules/lfs/server.go +++ b/modules/lfs/server.go @@ -332,7 +332,7 @@ func PutHandler(ctx *context.Context) { if err := contentStore.Put(meta, bodyReader); err != nil { ctx.Resp.WriteHeader(500) fmt.Fprintf(ctx.Resp, `{"message":"%s"}`, err) - if err = repository.RemoveLFSMetaObjectByOid(rv.Oid); err != nil { + if _, err = repository.RemoveLFSMetaObjectByOid(rv.Oid); err != nil { log.Error("RemoveLFSMetaObjectByOid: %v", err) } return -- cgit v1.2.3