~edwargix/git.sr.ht

8d5810145695392d527114f96026b75b740f0575 — Drew DeVault 3 years ago abfc143
API: fix concurrent map access
1 files changed, 1 insertions(+), 1 deletions(-)

M api/graph/schema.resolvers.go
M api/graph/schema.resolvers.go => api/graph/schema.resolvers.go +1 -1
@@ 866,8 866,8 @@ func (r *repositoryResolver) Path(ctx context.Context, obj *model.Repository, re
		return nil, fmt.Errorf("No such object")
	}
	repo.Lock()
	defer repo.Unlock()
	o, err := repo.Object(plumbing.CommitObject, *hash)
	repo.Unlock()
	if err != nil {
		return nil, err
	}