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.
1 parent b1f3ca3 commit 8ea687aCopy full SHA for 8ea687a
cmd/gitbase/command/server.go
@@ -290,7 +290,16 @@ 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
+
298
+ return repos.ForEach(func(r borges.Repository) error {
299
+ id := r.ID().String()
300
+ logrus.WithField("id", id).Debug("repository added")
301
+ return r.Close()
302
+ })
303
304
305
func (c *Server) addDirectory(d directory) error {
0 commit comments