We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7bd4533 + aa7dd37 commit 35d6bc7Copy full SHA for 35d6bc7
cmd/gitbase/command/server.go
@@ -290,7 +290,17 @@ func (c *Server) addDirectories() error {
290
}
291
292
293
- return nil
+ repos, err := c.rootLibrary.Repositories(borges.ReadOnlyMode)
294
+ if err != nil {
295
+ return err
296
+ }
297
+ defer repos.Close()
298
+
299
+ return repos.ForEach(func(r borges.Repository) error {
300
+ id := r.ID().String()
301
+ logrus.WithField("id", id).Debug("repository added")
302
+ return r.Close()
303
+ })
304
305
306
func (c *Server) addDirectory(d directory) error {
0 commit comments