Skip to content
Snippets Groups Projects
Commit 1c36e882 authored by q3k's avatar q3k
Browse files

api: whoops, forgot to release lock

parent dd93cd68
No related branches found
No related tags found
No related merge requests found
...@@ -134,6 +134,7 @@ func (s *server) getAppInfo(ctx context.Context, repo string) (*appInfo, error) ...@@ -134,6 +134,7 @@ func (s *server) getAppInfo(ctx context.Context, repo string) (*appInfo, error)
func (s *server) getAppRegistry(ctx context.Context) ([]*appDescriptor, error) { func (s *server) getAppRegistry(ctx context.Context) ([]*appDescriptor, error) {
s.gitMu.Lock() s.gitMu.Lock()
defer s.gitMu.Unlock()
if s.appRepo == nil { if s.appRepo == nil {
git, err := git.Clone(memory.NewStorage(), nil, &git.CloneOptions{ git, err := git.Clone(memory.NewStorage(), nil, &git.CloneOptions{
URL: "https://git.flow3r.garden/flow3r/flow3r-apps", URL: "https://git.flow3r.garden/flow3r/flow3r-apps",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment