mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 16:47:57 +01:00
parent
afa7f22dd8
commit
58c105d4bf
@ -227,6 +227,9 @@ func Repos(ctx *context.Context) {
|
||||
root := filepath.Join(models.UserPath(ctxUser.Name))
|
||||
if err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
|
||||
if err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
}
|
||||
if !info.IsDir() || path == root {
|
||||
|
Loading…
Reference in New Issue
Block a user