diff --git a/server_apps.go b/server_apps.go
index b9ea721d6d2a1bf01ae4549c9b8fc4f2a73f2257..3cbe71a3fd11159a5427aada1b0154e8c9aa2b03 100644
--- a/server_apps.go
+++ b/server_apps.go
@@ -134,6 +134,7 @@ func (s *server) getAppInfo(ctx context.Context, repo string) (*appInfo, error)
 
 func (s *server) getAppRegistry(ctx context.Context) ([]*appDescriptor, error) {
 	s.gitMu.Lock()
+	defer s.gitMu.Unlock()
 	if s.appRepo == nil {
 		git, err := git.Clone(memory.NewStorage(), nil, &git.CloneOptions{
 			URL: "https://git.flow3r.garden/flow3r/flow3r-apps",